Objects and Classes
Data
Iterations
2D arrays
ArrayLists
100

The method that creates a new object

What is Constructor Method?

100

ints, doubles, booleans; mutable and stored directly in memory

What are primitive data types?

100

Loop used when you know the number of iterations

What is a for loop?

100

int[][] myArray = new int[3][4];

What is creating a 2D array (row 3, col 4)

100

ArrayList<String> myArray = new ArrayList<>();

What is creation of an ArrayList?

200
Words that come before a method or variable that determine how they are accessed

What are access modifiers? (Private, public)

200

Variable types that must be capitalized and store the memory address of an object rather than the actual data

What are reference variables?

200

The loop used when you do not know the number of iterations needed

What is a while loop?

200

String myStr = array[0][1];


What is accessing elements of a 2D array?

200

.add(), .size(), .get(); .remove(), .set();

What are ArrayList methods?

300

The data or properties an object holds and the actions that the object performs

What is behavior and state?

300

The conversion of one data type to another (int to double, double to int)

What is casting?

300

A variation of a for loop that automatically loops through every value of an array

what is an enhanced for loop/for each loop?

300

for (int i = 0; i < array.length; i++)

{

   for (int j = 0; j < array[0].length; j++)

   {

      //do something

   }

}

What is row-major traversal?

300

The main difference between ArrayLists and regular arrays

What is change in size after creation?

400

Variables that only exist in an object class and are specific to each object

What are instance variables?

400

The object form of primitive data types; used for ArrayLists and built-in operations

What are wrapper classes? (Integer, Double)

400

int [] array = {5, 7, 9, 10, 11, 12, 45, 73, 13};

int myInt = arrray[0];

for (int i = 0; i < array.length; i++) 

{

     if (myInt < array[i])

     {

          myInt = array[i];

      }

}

return myInt;

---------------------------------------------

The aim of this algorithm

what is finding the max value of an array?

400

An alternative way to traverse a 2D array (row-major)

What are nested enhanced for loops (for each loops)?

400

The most effective way to remove elements from an ArrayList using a loop

What is traversing an ArrayList backwards?

500

Constructor methods that have the same name as another method, but with different parameters

What is an overloaded constructor?

500

int myInt = (int) (Math.random() * 10) + 1;

What is creating a random number from 1-10, inclusive?

500
The error thrown when you attempt to change values of an ArrayList using an enhanced for loop

what is concurrent modification error?

500

int i = 0

int mystery = 0;

   for (int j = 0; j < array.length; j++)

   {

      mystery += [i][j]

   }

}

-----------------------------------------

The aim of this algorithm

what is adding up the first elements in every row?

500

ArrayList<Integer> numbers = new ArrayList<>(); 

for (int i : numbers)

{

    //do something

}

------------------------------------

The outcome of executing this code segment

What is incompatible type error (cannot compile)?