Silly Strings 1
Ifs and only ifs
Math
Loopy Loops
Silly Strings2
100

This string method removes all of the white spaces on the outsides of a string literal.

What is trim?

100

These are the values checked for in all if statements

What is true?

100

Math.abs(-1);

returns this value.

What is 1?

100

This type of loop is fixed repetition.

What is a for loop?

100

This is comprised of characters that behaves as a single unit.

What is a string?

200

This string method returns an integer value indicating the number of characters in the string.

what is the length?

200

You can only have one of these and it has to be at the very start.

what is if?

200

Math.round(3.4);

returns this value?

What is 3?

200

This type of loop is pre-conditional repetition.

What is a while loop?

200
Strings aren't actually a data type. Instead they are considered this.

What is a class?

300

This is the term for converting string data back into numerical form.

What is parsing?

300

You can only have one of these and it has to be at the very end.

What is an else?

300

Math.ceil(-2. 1);

returns this value.

What is -2.0?

300

This type of loop is post conditional repetition.

What is a do while loop?

300

This term refers to what is in the double quotes when creating a string variable.

What is string literal?

400

This is the value that indexes of strings always start at.

What is 0?

400

There can be as an unlimited amount of these in the middle, but only in the middle.

What is an else if?

400

Math.floor(-4);

returns this value.

What is -4.0?

400

This is how many times this loop will run:

for(int i = 0; i > 5; i++){

System.out.print("Hello");

}

What is 0?

400

This string method returns where it finds the parameter word with the potential to be given a starting index.

What is IndexOf?

500

This is the resulting integer sign from the following code segement:

System.out.println("Cat".compareTo("Dog"));

What is negative?

500

This is the output from the following code:

boolean data = true;

if(!data)

System.out.println("a");

else

System.out.println("b");


what is b?

500

This is the number range generated by Math.random.

What is between 0 and 1 exclusive?

500

The do while loop is the only loop to have this at the very end.

what is a semi colon?

500
This is what is compared when using == to compare string objects.

What is the memory address?

M
e
n
u