What is Java?
Debugging
Basic Logic
Despicable Me Trivia!
Java Trivia!
100

The language we learned today.

What is Java?

100

The following code throws an error. The line with the erroneous code is _______.

1 if a>2 {
2    a++;
3 }

What is line 1?

100

The following if statement will return _____.

int a = 3;
if (a==3) {
  System.out.println("yee");
}

What is yee?

100

The main character of Despicable Me is ______. (Hint: it is not the minions.)

Who is Gru?

100

The object in the Java logo.

What is a cup of coffee?

200

Individual lines in Java should end with this character.

What is a semicolon?

200

This is the missing character in the code below.

int var_name = 4

What is a semicolon?

200

The following code will print ______.

int bro = 3;
int sis = 5;
if (sis<bro) {
   System.out.println("haha");
} else {
   System.out.println("oopsies");
}

What is oopsies?

200

The three girls in Despicable me are Margo, Edith, and _____.

Who is Agnes?

200

This is the decade that Java was created in.

What is the 1990s?

300
Every line of code in Java must be inside of a _____.

What is class?

300

The following code throws an error. The line with the erroneous code is ______.

0  int a = 2;
1  if (a=4) {
2    a = a + 2;
3 }

What is line 1?

300

The following code will print ______.

int num = 3;
if (num%2 == 1) {
  System.out.println("Nice.");
} else {
  System.out.println("Oh no.");
}

What is nice?

300

The year the first Despicable Me movie was released.

What is 2010?

300

Java was designed by this man.

Who is James Gosling?

400

Java is both a compiled and interpreted language. It is first compiled into a language called _______, then interpreted by the computer.

What is bytecode?

400

The following for loop is incorrect. The missing part is ______.

for (i=0; i<5; i++){
   System.out.println(i);
}

What is "int"?

400

The following code will output ________.

int time = 22;
if (time < 10) {  System.out.println("Good morning.");
} else if (time < 20) {  System.out.println("Good day.");
} else {  System.out.println("Good evening.");
}

What is good evening?

400

This is the name of Gru's large metal transportation device.

What is a Grumobile?

400

This is Java's initial name, before it was changed to "Java".

What is Oak?