When is an Unchecked Exception checked?
At Runtime
What are the 4 types of I/O
Reader and Writer and InputStream and OutputStream.
What is a graph made up of?
Nodes and edges
Give an example of a puzzle you can solve
Sudoku or N-Queens or Map Coloring, etc.
What is the superclass for all JavaFX components?
Node
What is the superclass called that lays out other components?
Pane
When is a Checked Exception checked?
At compile time
How is Scanner different from Reader?
Scanner doesn't do any exception handling
What is an undirected graph?
A graph were edges are not directed (don't have arrowheads)
Configuration
What is the stage?
The main window
Which layout lays out components in 5 sections (left, right, top, bottom, center)?
BorderPane
What kind of exception is an Arithmetic Exception?
Checked Exception
What is the decorator pattern?
When an object takes in another object to expand its functionality.
What 3 things do you need for BFS?
Graph, Queue (Visited Set), and Predecessor Map
What method is used for checking if a configuration is valid or not?
isValid()
What method is used to build out the GUI (add components)?
start()
Which layout lays out components from left to right and top to bottom?
FlowPane
What kind of exception is a FileNotFoundException?
Checked Exception
Write the line of code to create a PrintWriter to System.out. If you can also make it so the PrintWriter auto flushes when it encounters a new line then you get double points.
PrintWriter pw = new PrintWriter(System.out, true); (true makes it autoflush)
What 3 things do you need for DFS?
Graph, Visited Set, and Stack or Recursion
What method is used for seeing if the configuration is the solution?
isGoal()
What method is used to process/handle Command Line Arguments?
main() or init()
What is the superclass for UI elements that respond to stimulus?
Control
What is the output of this function?
hello
hi
dumb
Which graph search algorithm guarantees you the shortest path?
BFS
What method is used for getting the next configurations?
getSuccessors()
What method is used after closing the application?
stop()
What is created when a button is clicked and how should you handle it?
An ActionEvent and it should be handled by an EventHandler
What is an Error and should you handle it?
No, it is not related to the program it is related to the system.
Why did you learn I/O and Exceptions in the same week?
I/O often results in Exceptions being thrown.
What is a tree?
Directed Acyclic Graph
What is the time complexity of backtracking?
Exponential (# of choices# to fill)
What were predecessors to JavaFX?
Swing or AWT (Abstract Window Toolkit)
What are the 3 parts of MVC and their purpose
Model: Handles the data, logic and rules
View: Handles the visual representation of the application
Controller: Responds to user interaction and performs interactions on the model (updates the model)