AP Computer Science Principles Quiz
20 questions · no time limit
0:00
Finish quiz
ALGORITHMS AND PROGRAMMING
Question 1
of 20
Flag for review
No time limit
Current
Answered
Flagged
Not seen
Which of the following code segments will output "Pass" if the variable score is greater than or equal to 70, and "Fail" otherwise?
A
IF(score >= 70) { DISPLAY("Pass") } ELSE { DISPLAY("Fail") }
B
IF(score > 70) { DISPLAY("Pass") } ELSE { DISPLAY("Fail") }
C
IF(score = 70) { DISPLAY("Pass") } ELSE { DISPLAY("Fail") }
D
IF(score <= 70) { DISPLAY("Pass") } ELSE { DISPLAY("Fail") }
YOUR PROGRESS
20
QUESTIONS
Ready when you are
Answer in any order. Your progress shows here as you go.
QUESTIONS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
KEYBOARD
Pick an answer
A
B
C
D
Next question
↵
→
Previous
←
Flag for review
F