AP CSA Review Game — “Java Survival Skills”

AP CSA Review Game — “Java Survival Skills”

12th Grade

17 Qs

quiz-placeholder

Similar activities

AP CSA Arrays

AP CSA Arrays

9th - 12th Grade

18 Qs

Arrays

Arrays

10th - 12th Grade

14 Qs

One Dimensional Array

One Dimensional Array

9th Grade - University

14 Qs

Java 1D Arrays

Java 1D Arrays

9th Grade - University

14 Qs

Java - arrays and String methods

Java - arrays and String methods

9th - 12th Grade

12 Qs

Array

Array

10th - 12th Grade

15 Qs

Java Arrays Basic

Java Arrays Basic

10th - 12th Grade

15 Qs

AP CSA Java Arrays

AP CSA Java Arrays

9th - 12th Grade

18 Qs

AP CSA Review Game — “Java Survival Skills”

AP CSA Review Game — “Java Survival Skills”

Assessment

Quiz

Computers

12th Grade

Medium

Created by

SHAWN MCBRAYER

Used 2+ times

FREE Resource

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

It starts the program’s execution

It declares a variable

It loops the program

It prints “Hello World”

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is NOT a primitive data type in Java?

int

double

String

boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to declare a variable named age and set it to 17?

int age = 17;

age int = 17;

17 = age;

int age == 17;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

=

==

!=

<>

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will this code print?

5

0

10

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop runs at least once, even if the condition is false?

for loop

while loop

do-while loop

infinite loop

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Even

Odd

4

2

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?