Classes and Objects
Strings and Substrings
Arrays and ArrayLists
2D Arrays
Recursion
100
A blueprint that is similar to an abstract class, but without any implementations.
What is an interface?
100
The value returned from "APCSA".substring(2, 4)
What is CS?
100
These data types cannot be used in an ArrayList.
What are primitives?
-OR-

What are ints, doubles, booleans, etc.?

100
Given the 2D array values:

double[][] values = { {1.2, 9.0, 3.2},

                                {9.2, 0.5, 1.5},

                                {7.3, 7.9, 4.8}};

The value of values[2][1].

What is 7.9?
100
The value of n when the method stops calling itself:


public int product(int n){

     if(n == 1)

          return 1;

     else

          return n * product(n - 2);

}

What is 1?
200
The structure that creates an instance of the class.
What is a constructor?
200
The value returned from 

"Green Eggs And Ham".indexOf("g").

What is 7?
200
Given an ArrayList called list, the proper way to access the last element in list.
What is list.get(list.size() - 1)?
200
Given the 2D array things:

double[][] things = {{1.2, 9.0},

                               {9.2, 0.5},

                               {7.3, 7.9}};

The value of things.length.

What is 3?
200
The exception that appears in the case of "infinite" recursion.
What is StackOverflow?
300
The two things that must be done in order to use an object.
What are declare and instantiate?
300
Given a String called myText with a minimum length of 3, the proper way to extract the characters of myText beginning with the third character.
What is myText.substring(2)?

-OR-

What is myText.substring(2, myText.length())?

300
The advantage of using an ArrayList over an array.
What is dynamic sizing?
300
The proper way to declare and instantiate an array of ints called stuff with 5 rows and 7 columns.
What is int[][] stuff = new int[5][7]?
300
The final result of mystery(5).


public int mystery(int n){

     if (n == 0)

          return 1;

     else

          return 3 * mystery(n - 1);

}

What is 243?
400
The class that all objects/classes are derived/inherited from.
What is Object?
400
The value of result after the following command:


String result = "abcdefgh".substring(2) + "hgfedcba".substring(5);

What is cdefghcba?
400
Worst-case efficiency of selection and insertion sorts.

What is O(n2)?

400
The final value of sum after the code executes:


int[][] m = {{1, 1, 1, 1},

                   {1, 2, 3, 4},

                   {2, 2, 2, 2},

                   {2, 4, 6, 8}};

int sum = 0;

for(int k = 0, k < m.length; k++)

     sum = sum + m[m.length - 1 - k][1];

What is 9?
400
The result of product(5).


public int product(int n){

     if (n <= 1)

          return 1;

     else

          return n * product(n - 2);

}

What is 15?
500
A class that cannot be instantiated/used unless another class derived from it is created.
What is an abstract class?
500
The value of result after the following:


String result = "adbcefg".substring(1,3 * "abcd".indexOf("acbcd".substring(2)) + 1)

What is dbc?
500
Worst-case efficiency of a merge sort.
What is O(n log n)?
500
The final contents of arr:

int[][] arr = {{3, 2, 1}, {1, 2, 3}};

int value = 0;

for (int row = 1; row < arr.length; row++){

     for(int col = 1; col < arr[0].length; col++){

          if (arr[row][col] % 2 == 1)

               arr[row][col] = arr[row][col] + 1;

          if (arr[row][col] % 2 == 0)

               arr[row][col] = arr[row][col] * 2;

          }

     }

}

What is:

{{3, 2, 1}, {1, 4, 8}}

500
The result of redo(82, 3).


public int redo(int i, int j){

     if (i == 0)

          return 0;

     else

          return redo(i/j, j) + 1;

}

What is 5?