Arrays
2D Array
More on Arrays and 2D arrays
Key Words
Misc
100

A programming construct that lets you group values of the same type under a single name.

What is an array?

100

An array object that stores references to other array objects

What is a 2D array?

100

This is what happens when you try to access a value at an index that doesn't exist for an array.

What is ERROR?

100

Key words used when creating objects.

What is new?

100

Game system Lopez brough to DLL.

What is the Wii?

200

Name for the number that is associated with a specific value within an array. 

What is an index?

200

When creating a 2D array object, this is what the second number in the square brackets is for.

What is the number of values in each array?

200

Default values for values stored by int array objects if not explicitly specified

What is 0?

200

Key word to indicate that a field should be shared across objects. Also indicates that a method can be called without creating an object beforehand.

What is static?

200

Smash character Lopez likes most

Who is Ness?

300

The number you type inside square brackets when you create an array object in your program.

What is array size?

300

Aside from when creating a 2D array object, this is what the first number in square brackets attached to a 2D array reference means.

What is specifying from which array (or row) you are reading/writing a value?

300

The result of:

Pokemon[] p1 = {new Pokemon("mew", 200), new Pokemon("pichu", 20)};

Pokemon[] p2 = {new Pokemon("mew", 200), new Pokemon("pichu", 20)};

System.out.println(p1 == p2);

What is false?

300

Keyword that lets you stop a loop prematurely.

What is break?

300

Person won the Augusta Masters this year.

Who is Rory Mclroy?

400

Programming constructs that let you perform a set of instructions for every value in an array with n values.

What is enhanced for loop, for loop, while loop, and recursion?

400

Typical way to do something for each value in a 2D array.

What is nested loop?

400

The result of:

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

for(int i = 0; i < 10; i--){

      System.out.println(nums[i] + 2);

}

What is error?

400

This keyword is used to refer to the current object inside a class.

What is this?

400

Lopez nicname for head of upper 

Who is Schebby?

500

The result of this:

Pokemon[] myTeam = {new Pokemon("mew", 200), new Pokemon("gible", 30)};

int[] nums = {5, 5, 5};
for(int num: nums){

      num = 10;

}
for(Pokemon mon: myTeam){

      mon.editHp(-10);

}

System.out.println(nums[0]);

System.out.println(myTeam[0].getHp());

What is:
5
190
?

500

The result (what nums ends up storing) of this:

int[][] nums = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
for(int i = 2; i >= 0; i--){

      for(int j = 2; j >= 0; j--){

                 if(!(i == 0 && j == 0)){

                        if(j != 0){

                             nums[i][j] += nums[i][j - 1];

                         }

                         else{

                              nums[i][j] += nums[i - 1][2];

                         }

                 }

      }

}

The result is:

[[1, 3, 5],
[7, 9, 11],
[13, 15, 17]]

500

Default values for values stored by non primitive type array objects if not explicitly specified

What is null?

500

Keyword that makes it so that you can only read from a variable once it is initially assigned a value.

What is final?

500

State Lopez moving to after school year

What is NC?

M
e
n
u