Data Structures
Algorithms
Inner Classes, Anon Classes, Lambdas
Threading
Misc
100

What graph search pattern searches the closest vertices first?

Breadth-first search

100

What is the optimal search function for weighted graphs?

Dijkstra's Algorithm

100

What type of class is created in another class?

Inner Classes

100

What is the term for waiting for a thread to finish?

Polling

100

What is Professor Hamza's first name?

Ahmed

200

How can you create a one-way edge between vertex A and vertex B? (function name and params)

connectUndirected(A, B);

200

What is the term for a possible next choice?

A successor

200

What particular type of class can only be mentioned in the function it was defined in?

Anonymous classes

200

What are the 4 main thread states?

NEW, RUNNABLE, RUNNING, DEAD

200

What is a branch of Java that is commonly used?

Kotlin, Scala, Groovy, Xtend, Ceylon, Fantom, Clojure

300

What type of algorithm makes the immediate best decision?

Greedy Algorithms

300

What is backtracking?

Solving configurations with trial and error, needing to go backwards once you can't go forward

300

What is one possible format of a lambda?

(Type param1, Type param2) -> {

content

};

300

What is deadlock?

When there are 2+ threads waiting on each other to notify

300

What is the "black box" in your computer called?

A thread scheduler.

400

What is the global optimum?

The best possible answer.

400

What is pruning?

Removing invalid configurations when backtracking

400

Use a lambda to make a Button named rewind print "hello" to console. Hint: so set something on an action, use the method Button.setOnAction(action);

rewind.setOnAction((e) -> {

System.out.println("hello");

});

400

What is a race condition?

Where 2+ threads are racing to modify the same variable.

400

What is the Java mascot's name?

Duke

M
e
n
u