Math
Java Basics
Miscellaneous
Strings
100

11 / 2 * 3

What is 15 ?

100

What primitive type can only hold true or false values?

boolean

100

Who is this?

Yoshi

100

string a = 'Hello World"; What are the two reasons why this would NOT compile?

missing double quotes left side, S in String is not capitalized

200

10 % 4 * 2

4

200

What primitive type is used for decimal values?

double

200

Which Pokémon is this?


Lucario


200

System.out.print("computer".substring(4));

What is "uter"?

300

10/4.0

What is 2.5 ?

300

What is the value of x after the following sequence of statements?

int x = 10;

x--;
x++;

x % 2

0

300

An Olympic gold medal is mostly comprised of what metal? 

It's 92.5% silver.

300


String a = "apple";

System.out.print(a.substring(1,2));

What is "p"?

400

(int) (10.01 / 4.99)

What is 2 ?

400

What is the output by the code below?
int x = 9;
double y = x;
System.out.println(y);








What does the following evaluate to?

!(x || y) == ((!x) & (!y))

What is 9.0?

400

What was the first Pixar movie?

Toy story

400

System.out.println(("13" + "16");

What is the output?











"catastrophe".substring(0);

1316, the two numbers concatenate together

500

(double) (10/4)

What is 2.0 ?

500

converting from one data type to another

What is casting?

500

What technology company was founded in 1993 with the vision that the next wave of computing would be graphics-based? The company took its name from the Latin word for "envy" and features product families GeForce, Quadro, and Tegra.

Nvidia

500

System.out.print("taco".length());

What is 4