
AP CSA Unit 3 Game 1
Authored by Haiyang Wen
Computers
12th Grade
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code print when x has been set to 187? if (x < 0) { System.out.println("x is negative"); } else if (x == 0) { System.out.println("x is zero"); } else { System.out.println("x is positive"); }
x is negative
x is zero
x is positive
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed when the following code executes and x equals 4 and y equals 3? if (!(x < 3 || y > 2)) System.out.println("first case"); else System.out.println("second case");
first case
second case
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3-12-3: What is the value of grade when the following code executes and score is 80?
A
B
C
D
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the following code: if (score >= 90) { grade = "A"; } if (score >= 80) { grade = "B"; } if (score >= 70) { grade = "C"; } if (score >= 60) { grade = "D"; } else { grade = "E"; }
A
B
C
D
E
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed when the following code executes and x has been set to zero and y is set to 3? if (x > 0 || (y / x) == 3) { System.out.println("first case"); } else { System.out.println("second case"); }
first case
second case
You will get a error because you can't divide by zero.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following expressions is equivalent to !(c || d) ?
!(c && d)
!(c) || d
(!c && !d)
!(c && d)
7.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Which of the following is equivalent to the code segment below?
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Computación 1ro y 2do básico
Quiz
•
1st Grade - University
20 questions
C Quest 2.0
Quiz
•
University
20 questions
PHP First Internal Practical Viva
Quiz
•
University
16 questions
Principles of Information Technology
Quiz
•
9th Grade - University
18 questions
SEMI-Grier Unit 3.01-3.03
Quiz
•
9th - 12th Grade
20 questions
Key Applications 2
Quiz
•
9th - 12th Grade
18 questions
What's In Your Phone?
Quiz
•
9th - 12th Grade
16 questions
understanding print PROCESSES 2
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
18 questions
Success Strategies
Quiz
•
9th - 12th Grade
10 questions
Valentine's Day Trivia
Quiz
•
9th - 12th Grade