Exceptions
I/O
Graphs and BFS/DFS
Backtracking
JavaFX
GUI/MVC
100

When is an Unchecked Exception checked?


At Runtime

100

What are the 4 types of I/O 

Reader and Writer and InputStream and OutputStream.

100

What is a graph made up of?

Nodes and edges

100

Give an example of a puzzle you can solve

Sudoku or N-Queens or Map Coloring, etc.

100

What is the superclass for all JavaFX components?

Node

100

What is the superclass called that lays out other components?

Pane

200

When is a Checked Exception checked?

At compile time

200

How is Scanner different from Reader?

Scanner doesn't do any exception handling

200

What is an undirected graph?

A graph were edges are not directed (don't have arrowheads) 

200
What is the interface used for backtracking? 

Configuration

200

What is the stage?

The main window

200

Which layout lays out components in 5 sections (left, right, top, bottom, center)?

BorderPane

300

What kind of exception is an Arithmetic Exception?

Checked Exception

300

What is the decorator pattern?

When an object takes in another object to expand its functionality.  

300

What 3 things do you need for BFS?

Graph, Queue (Visited Set), and Predecessor Map

300

What method is used for checking if a configuration is valid or not?

isValid()

300

What method is used to build out the GUI (add components)?

start()

300

Which layout lays out components from left to right and top to bottom?

FlowPane

400

What kind of exception is a FileNotFoundException?

Checked Exception

400

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)

400

What 3 things do you need for DFS?

Graph, Visited Set, and Stack or Recursion

400

What method is used for seeing if the configuration is the solution?

isGoal()

400

What method is used to process/handle Command Line Arguments?

main() or init()

400

What is the superclass for UI elements that respond to stimulus?

Control

500

What is the output of this function?

hello

hi 

dumb

500

Create a BufferedReader that reads from System.in.

BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

500

Which graph search algorithm guarantees you the shortest path?

BFS

500

What method is used for getting the next configurations?

getSuccessors()

500

What method is used after closing the application?

stop()

500

What is created when a button is clicked and how should you handle it?

An ActionEvent and it should be handled by an EventHandler

600

What is an Error and should you handle it?

No, it is not related to the program it is related to the system. 

600

Why did you learn I/O and Exceptions in the same week?

I/O often results in Exceptions being thrown.

600

What is a tree?

Directed Acyclic Graph

600

What is the time complexity of backtracking?

Exponential (# of choices# to fill)

600

What were predecessors to JavaFX?

Swing or AWT (Abstract Window Toolkit)

600

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)