Search Header Logo
AP CSA Review Game — “Java Survival Skills”

AP CSA Review Game — “Java Survival Skills”

Assessment

Flashcard

Computers

12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

17 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What does public static void main(String[] args) do in Java?

Back

It starts the program’s execution

2.

FLASHCARD QUESTION

Front

Which of these is NOT a primitive data type in Java? int, double, String, boolean

Back

String

3.

FLASHCARD QUESTION

Front

What is the correct way to declare a variable named age and set it to 17? Options: int age = 17;, age int = 17;, 17 = age;, int age == 17;

Back

int age = 17;

4.

FLASHCARD QUESTION

Front

What symbol is used for the “equal to” comparison in Java?

Back

==

5.

FLASHCARD QUESTION

Front

What will this code print? Options: 5, 0, 10, Error

Back

5

6.

FLASHCARD QUESTION

Front

Which loop runs at least once, even if the condition is false? Options: for loop, while loop, do-while loop, infinite loop

Back

do-while loop

7.

FLASHCARD QUESTION

Front

What does this code output?
if (4 % 2 == 0) {
System.out.println("Even");
} else {
System.out.println("Odd");
}

Back

Even

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?