Exceptions
IO
Graphs
JavaFX
MVC/GUI
100

When is a checked Exception checked?

What is Compile time?

100

What are the two types of IO


Bonus 20: what are the two types of streams?

What is Reader/Writer

Bonus: input/output streams

100

What are Graphs composed of?

What is Nodes and edges (Nodes = vertices, same thing)

100

What is the super class for all components in JavaFX

what is Node?

100

What method must all Observers have

what is update?

200

What kind of exception is an arithmetic exception?

What is unchecked?

200

What is the Major difference between a Scanner and a FileReader

Scanner doesn't do any exception handling while FileReader will close no matter what when using a"try with resources"

200

What is an undirected Graph

What is a graph where each edge can go either way? 

(No arrow heads)

200

What method actually adds in the components

What is Start?

200

What are the 5 components to a border pane

What is top, bottom, right, left, and center?

300

What is the one way to avoid the finally clause?

What is System.exit(<status code>)

300

What is a decorator pattern?

When an object takes in another object to expand its functionality

300

What method checks if a configuration is valid or not?

what is isValid()

300

What 2 things begin the JavaFX hierarchy?  

What is Stage --> scene?

300

What is the general life cycle of a GUI


Bonus 50: what components are optional?

what is main --> default constructor --> init --> start --> stop

Bonus: default, init, and stop, and main

400

What is the output of:

try{

    try{

    int x = 0;

    int y = 1;

    int z = y / x;

    }catch(ArithmeticException e){

       System.out.println("hello"); 

   }finally{System.out.println("hi");}

}catch (Exception e) {System.out.println("heebeee");}

finally{

    System.out.println("Jee bee");

}

What is

hello

hi 

Jee bee

400

Internally when I create a buffered reader, what internal objects are being made

I.E new BufferedReader("name")

what is

BufferedReader(FileReader(File("name")))

400

What equation gives us the total number of configurations when searching/backtracking?

What is k^n where k is our branching factor and n is our maximum depth

400

Name the 3 big layouts and describe them.

Bonus 100 points if you can name the two box-based panes.

What is

Flowpane --> 

GridPane --> 

BoarderPane --> 


BONUS: (Hbox and VBox)

400

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

An ActionEvent and it should be handled by an EventHandler


(its also fine to just say the controller handles the event)

500

What are the two ways to handle a checked Exception?

What is throwing it or catching it?

500

SPRINT:

Create a BufferedReader that reads from System.in


Bonus 100: what method lets me clear the buffer to make way for more data

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


BONUS: flush()



500

SPRINT:

Perform DFS on the following graph to find the path from 1 --> 5 assuming numerical order determines neighbor order. *YOU MUST SHOW EACH ELEMENT OF THE SEARCH*


1 = [2]

2 = [3, 6]

3 = [4,6]

4 = []

5 = []

6 = [5, 3]

1 --> 2 --> 3 --> 6 --> 5

500

SPRINT: Draw the following design

Stage --> scene --> Border Pane


TOP --> Border Pane --> left --> label

RIGHT --> border Pane --> TOP --> Flowpane (vertical) --> 3 buttons

Center --> GridPane --> 3 by 3 buttons

What is ...Ill just look

500

What are the components of the MVC model and what is 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)

M
e
n
u