Using Objects and Methods
Selection and Iteration
Class Creation
Data Collections
MISC
100

This keyword indicates "no return value"

What is void?

100

This is an equivalent statement to !(A && !B) using DeMorgans Law.

What is  !A || B ?

100

This is a definition of static and non-static.

Static refers to the attributes/methods belonging to the class itself, and non-static refers to the attributes/methods belonging to an instance of the class.

100

The Java classes used to connect a program to a text file for reading.

What are File and Scanner?

100

Term that refers to the Java behavior where if the first conditional for && is false, the second one isn't evaluated (same with ||, if the first conditional is true the second isn't evaluated).

What is short circuit evaluation?

200

This is 45 + (int)(Math.random() * 24)

What is a statement that returns a random number in between 45 and 68.

200

If String str = "elephant", This is String sub if....

String sub = str.substring(str.length() - 3. str.length()-1);

What is "an"

200

This is a constructor's return type.

Constructors do not have return types.

200

Code that creates a Scanner named input to read from an existing File object named myFile.

What is Scanner input = new Scanner(myFile);?

200

This symbol is used to denote a comment in Java.

What is either "//" or "/*  */" ?

300

this is is "ArithmeticException"?

What is the name of a run time error that is thrown when you try to divide a number by 0?

300

Name of an error that is thrown when you try to access an element of an array that doesn't exist (i.e. array[array.length]).

What is indexOutOfBounds Exception?

300

This part of a class initializes the instance variables.

What is a constructor?

300

This is the name of the only sorting method we covered that uses recursion.

What is "merge sort"?

300

This is for whom the word Boolean was named.

Who is George Boole?

400

This keyword is put in front of variable name to mark that variable as immutable (cannot change the variable's value once it is assigned).

What is final?
400

boolean c = ((3.0*4 == 7*x)&&(4.0*2!=16/2 && 4/2=x*(int) Math.random());  IF x=2

What is false ? This will never evaluate to true.

400

Instance variables declared private can only be accessed directly from here.

What is within the same class they were declared

400

The last letter in the 3rd String in the ArrayList called words.

What is … words.get(2).substring(words.get(2).length()-1)?

400

The keyword "_____" is used to skip the rest of the code in an iteration and start the next iteration, and the keyword "_____" is used to exit the loop altogether.

What are "continue" and "break"?

500

This is ((int)(Math.random() * 6) + 5) * 2.

What is the code to return a random even number between 10 and 20 (inclusive)?

500

Values for a and b which will evaluate c to true when boolean c = (a || b) && (!a || b);

What is b = true?

500

This is what you call it when you have multiple constructors in one class.

What is "Constructor overloading"?

500

This is the last letter in the 3rd String in the ArrayList called words.

What is … words.get(2).substring(words.get(2).length()-1)?

500

This is the String method that can separate one line of file data into a returned array using a delimiter.

What is .split(String del)?