When is an Unchecked Exception checked?
At Runtime
Base abstract classes performing binary based I/O
What are InputStream and OutputStream?
What is a graph made up of?
Nodes/Vertices and edges
Give an example of a puzzle you can solve with backtracking
Sudoku or N-Queens or Map Coloring, etc.
What is the superclass for all JavaFX components?
Node
What interfaces/superclasses does a GUI need to implement/extend in order to interact with
Extend Application, implement observable
When is a Checked Exception checked?
At compile time
The reason you learn I/O and Exceptions in the same
What is I/O often results in Exceptions being thrown?
What is an undirected graph?
A graph where all edges are bi-directional
What is the interface used for backtracking?
Configuration
What is the stage?
The main window
What is the Model?
The state of the world represented by code, it has no GUI elements directly
Try-with-resources
What is when a resource (usually IO) is created in a try block that automatically closes when the block exits?
Flushing a Buffer
What causes a buffer to immediately writes all the data to the output?
What 2 data structures other than graph are used in BFS?
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()
What is the View?
The part of the GUI that the user can see, and interact with.
What kind of exception is an Arithmetic Exception?
Unchecked Exception
The interface you implement to allow your class to be written to a file
What is Serializable?
What 2 data structures other than graph are used in DFS?
Visited Set, and Stack or Recursion
What method is used for seeing if the configuration is the solution?
isGoal()
Which JavaFX element has slots for top, bottom, left, right, and center?
BorderPane
What is the Controller?
Handles user input events, such as button presses or mouse movement. Accepts input and converts it to commands for the model or view.
What kind of exception is a FileNotFoundException?
Checked Exception
Create a Scanner that reads from a file named "somefile"
Scanner input = new Scanner(new File("somefile")
Which graph search algorithm guarantees you the shortest path?
BFS
What method is used for getting the next configurations?
getSuccessors()
Which JavaFX element lays out its children left to right that can wrap around to the next line?
FlowPane
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 the output of this function?
hello
hi
dumb
What is the technical definition a tree (graph)?
A Directed Acyclic Graph
What is the time complexity of backtracking?
Exponential (# of choices# to fill)
What is the code to add a button that says "click me" to a GridPane named gp at (0,0)
Button b = new Button("click me");
gp.add(b, 0, 0);
Draw the tree structure of the JavaFX elements that would be required to make this jeopardy website's main screen.
Stage -> Scene -> BorderPane
Top -> Hbox -> Label x5
Center -> GridPane -> Button x25