last minute revision Flashcards
what is the stucture of a 3D array [][][]
[matrix][row][column]
what data structure are the values from a depth first search stored in
stack
what data structure are the values from a breadth first search stored in
queue
what are the 4 tools provided by the IDE
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 does the inorder, post order and preorder visit nodes
in order- left node right
post order - visit node 3 times
pre oder - visit node 1 time
how does a set method happen
public void setX(X){
this.X= X
}
how does a get method happen
public String getX(){
return X
}
what is the technical difference between high level and assembly code
- assembly language is specific to the instruction set of a given processor
- high level language are not architecture specific
what happens when a search engine indexes a page(4)
- 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
what is it called when a field doesnt only depend on the primary key
a transitive relationship
what is a CSV file
a text file with values separated by commas
why protocols are important on a network(3)
- allows devices to communicate
- ensure devices follow the same rules
- they interpret signals in the same way
what are the 2 features of a real time operating system
- responds instantly to changes
- offers a guranteed response time
wh8at are the advantages of using encapsulation
- ensures objects can only be changed in the way intended
- protects data( can’t be changed accidentally)
what is a multi level feedback queue
handles different queues using priorities to promote and demote processes