last minute revision Flashcards

1
Q

what is the stucture of a 3D array [][][]

A

[matrix][row][column]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what data structure are the values from a depth first search stored in

A

stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what data structure are the values from a breadth first search stored in

A

queue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what are the 4 tools provided by the IDE

A

underlines syntax errors before running saves time to fix errors
breakpoints allow to check the values of variables up to a point
step mode allows you to check the values of variables as programs execute
auto indentation to maintain code structure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

how does the inorder, post order and preorder visit nodes

A

in order- left node right
post order - visit node 3 times
pre oder - visit node 1 time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

how does a set method happen

A

public void setX(X){
this.X= X
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

how does a get method happen

A

public String getX(){
return X
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is the technical difference between high level and assembly code

A
  • assembly language is specific to the instruction set of a given processor
  • high level language are not architecture specific
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what happens when a search engine indexes a page(4)

A
  • a program called web crawler
  • traverses the web following links
  • it takes each word on the page(layout of text)
  • it adds an entry to the page in the index
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what is it called when a field doesnt only depend on the primary key

A

a transitive relationship

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what is a CSV file

A

a text file with values separated by commas

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

why protocols are important on a network(3)

A
  • allows devices to communicate
  • ensure devices follow the same rules
  • they interpret signals in the same way
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what are the 2 features of a real time operating system

A
  • responds instantly to changes
  • offers a guranteed response time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

wh8at are the advantages of using encapsulation

A
  • ensures objects can only be changed in the way intended
  • protects data( can’t be changed accidentally)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what is a multi level feedback queue

A

handles different queues using priorities to promote and demote processes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what is meant by the clock speed

A

the number of FDE cycles that the processor executes in a second

17
Q

what is a power on self test(POST)

A

a routine that checks if the hardware is installed correctly before loading the OS

18
Q

what is a switch(3)

A
  • joins computers together on a LAN
  • receives data packets(using MAC address)
  • sends data packets
19
Q

what are the 2 uses of hashing

A
  • security( passwords are safe if data base is intercepted)
  • direct access(records can be quickly accessed by using hash of index as adress)
20
Q

what is the purpose of a D-type flip flop

A

store the value of 1 bit when a signal is given

21
Q

what does STA mean in LMC

A

store the value in accumulator at address given