Unit 1 (Using Objects and Methods)
Unit 2 (Selection and Iteration)
Unit 3 (Class Creation)
Unit 4 (Data Collections)
Mystery
100

Int, double, boolean, char are all ___ and String, Integer, Double are all ___.

What is primitive and non-primitive (reference)?

100

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 is continue and break?

100

In a class, attributes are typically ___ and methods are typically ___. 

What is private and public?

100

The main advantage of using ArrayLists over arrays. 

What is being able to change the size of the ArrayList/ArrayList is more flexible?

100

Symbol used to denote a comment in Java.

What is // or /* */? 

200

Statement that returns a random number in between 45 and 68. (Use AP CSA way of generating random numbers)

What is 45 + (int)(Math.random() * 24)?

200

Below is an example (be specific):

int[] numbers = {10, 20, 30, 40, 50};
for (int number : numbers) {
       System.out.println(number);
}

What is an enhanced for loop?

200

___ refers to the attributes/methods belonging to the class itself, and ___ refers to the attributes/methods belonging to an instance of the class. 

What is static and non-static?

200

The error in the code below (assume libraries are imported as necessary):

ArrayList<int> heights = new ArrayList<>();

heights.add(4);

heights.add(2);

heights.add(3);

System.out.println(heights.get(1));

What is creating an ArrayList with primitive variables?

200

The order of the topics related to each of the four questions on the FRQ portion of the AP CSA exam. 

What is Methods/Control Structures, Class Design, Array/ArrayLists, and 2D Arrays?

300

Term referring to how converting a double to an integer always rounds down (i.e. removes anything past the decimal point). 

What is truncating/flooring?

300

Line of code that creates a new string called sub from a string str, including the first two characters out of the last three characters of str (i.e. if str = "elephant", sub = "an").

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

300
The name of a method you can include in your class in order to return a pre-defined string when an instance of the class is directly called (ex: print(object)). 

What is toString?

300

A sorting method that moves an unsorted element into the correct spot in a sorted portion of the array repeatedly until the array is sorted. 

What is insertion sort?

300

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?

400

Name of an error that is thrown when you try to divide a number by 0.

What is ArithmeticException?

400

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 IndexOutOfBoundsException?

400

Term referring to when a subclass provides its own implementation for a method present in the superclass. Sometimes written @____ before the method itself.  

What is override?

400

Name of the only sorting method we covered that uses recursion. 

What is merge sort?

400

The MCQ portion of the AP CSA test makes up ___% of your grade and the FRQ portion of the AP CSA test makes up ___% of your grade. 

What is 55 and 45?

500

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

Ex: ___ int My_VAR = 4;

What is final?

500

Allows you to add certain characters to a string, such as \n for new line or \' for '. 

What is an escape sequence?

500

This is something not inherited by the child class from the parent class. 

What are private attributes/methods?

500

Names of both searching algorithms and names of all three sorting algorithms. 

What are linear search, binary search, selection sort, insertion sort, and merge sort? (Will also count bubble sort). 

500

Number of multiple choice exam questions on the AP CSA exam and how long you have to complete them.

What is 42 questions in 1 hour 30 minutes?