Arrays
Loops
Logic and user interaction
Misc
100

This is how we get the size of an array named "arr".

What is arr.length? 

100
This is the value of i after the following code is run:

i = 7;

i++;

What is 8?

100

This is the operator that we use to compare if two values are equal to each other.

What is == ? 

100

This is Ms. Zhang's birthday.

What is Dec. 11?

200

This is how we get the first element of an array called "list". 

What is list[0]?

200

This is the number of times that the code inside the following for loop is repeated: 

for (int i = 0; i <= 5; i++)

What is 6 ? 

200

This is the special variable that contains the value of the last key that was pressed by the user.

What is key ?

200

This is the number of school days (not including today, and not including holiday chapel) left in the year 2025.

What is 7?

300

This is how we declare and initialize an array of ints, called "nums," with length 10.

What is int[] nums = new int[10]; ?

300

This is how we would write a for loop to print out all the numbers counting down from 10 to 1.

What is:

for (int i = 10; i >= 1; i--) {

print(i);

}

300

This is the if statement that we could write to check if the value of an integer variable called "x" is between 200 and 300, inclusive.

What is 

if (200 <= x && x <= 300) ? 

(not the only correct answer)

300

This is the full line of code that you would use to draw a point at the exact middle of the canvas, even if you don't know the canvas size.

What is point(width/2, height/2);

400

This is how we get the LAST element in an array called "nums".

What is nums[nums.length - 1]?

400

This is how we would rewrite the following for loop as a WHILE loop:

for (int i = 2; i < 8; i = i + 2) {

print(i);

}

What is:

int i = 2;

while (i < 8) {

print(i);

i = i + 2;

}

400

This is the operator that is used to check if AT LEAST one of multiple conditions is true, rather than requiring all of them to be true

What is || ?

400

This is the data type we would use for a variable that could hold a decimal value.

What is float?

500

This is how we would declare and initialize an int array, called squares, to hold the first three square numbers (1, 4, 9).

What is int[] squares = {1, 4, 9}; ?

500

This is how we could write a loop that prints out every element of an int array called "nums", in order.

What is 

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

print(nums[i]);

}

500

This is the if statement that you could use to check if the user's mouse is in the TOP LEFT quadrant of the canvas.

What is:

if (mouseX < width/2 && mouseY < height/2) ?

500

This is the full line of code you would use to set the color used to fill in shapes to TRANSPARENT

What is fill(0, 0, 0, 0);