When is an unchecked exception checked?
When is a checked exception checked?
at runtime
at compile time
What is a graph made up of?
Nodes and edges
What is the vocab term to describe removing invalid configurations to improve runtime?
Pruning
What does the M in MVC stand for and what does it do?
Model: handles the data, logic, and rules
What is the superclass for all JavaFx components?
Node
How is a Scanner different from a Reader?
Scanner does NOT do any exception handling
Which graph search algorithm guarantees you the shortest path?
BFS
What are the time complexities of BFS, DFS, and Backtracking?
BFS/DFS: O(|V| + |E|)
Backtracking: O( |S|^N), where S is the set of successors for each node
What does the V in MVC stand for and what does it do?
View: handles the visual representation of the application
Which layout puts components in 5 sections?
Borderpane
What is the output of this code?
hello
hi
dumb
What is a tree?
Directed, Acyclic graph
What interface did we use for backtracking?
Configuration
What does the C in MVC stand for and what does it do?
Controller: responds to user interaction and performs interactions on the model (updates the model)
Which layout puts components from left to right and top to bottom?
Flowpane
What are the 4 types of I/O?
Reader
Writer
InputStream
OutputStream
Perform BFS on this graph (start @ d and go alphabetical)
d, c, e, a, b, f, g
What are the 3 functions that the Configuration Interface declares?
And what do they do?
boolean isValid();
Collection <Configuration> getSucessors();
boolean isGoal();
Write the code that when a button is clicked then the function runButtion is called
button.setOnAction( e-> {
runButton();
};
What does the JavaFX tree look like?
Stage -> Scene -> (whatever scene components we need)
Perform DFS on this graph (start @ d, in alphabetical order):
d, c, a, b, f, g, e
What 3 things do you need for BFS?
What 3 things do you need for DFS?
BFS: graph, queue (visited set), predecessor map
DFS: graph, visited set, stack/recursion
Draw the MVC model and label the arrows
What methods are used to process command line arguments in JavaFX?
main() or init()