PSEUDOCODE
MAKING DECISIONS
BOOLEAN LOGIC
PYTHON SELECTION
DATA AND ERRORS
100
The pseudocode command word that takes data from the user.
What is INPUT?
100
An IF statement runs its code only when this is true.
What is the condition?
100
This Boolean operator needs only one of its two conditions to be true.
What is OR?
100
In Python the command word if must always be written in this case.
What is lowercase?
100
The data type of "7" — look closely at the quotation marks.
What is a string?
200
This pseudocode symbol means "store this value in this variable".
What is the arrow ← (assignment)?
200
The part of an IF statement that runs when the condition is false.
What is the ELSE?
200
This Boolean operator takes one condition and reverses it.
What is NOT?
200
Python has no ENDIF. This is what shows which lines belong inside the if.
What is the indent?
200
45 is this data type, and 3.75 is this one.
What are integer and real?
300
A value that is named once at the start and never changes while the program runs.
What is a constant?
300
You need to test a second and a third condition, one after another. This command word does it.
What is ELSEIF?
300
(10 is greater than 3) AND (2 is greater than 8)
What is False?
300
if temp = 30: The one fault in this line.
What is a single equals sign where == is needed?
300
A linear search of 4 18 7 25 9 11 looking for 25.
What is 4 comparisons?
400
num1 ← 7 num2 ← 3 total ← num1 * num2 The value left in total.
What is 21?
400
IF mark >= 50 THEN OUTPUT "Pass" ELSE OUTPUT "Fail" ENDIF The output when mark is 50.
What is Pass?
400
NOT (7 is not equal to 7)
What is True?
400
number = 7 if number > 10: print("Big") print("End") The output.
What is End?
400
The two values that bool( ) turns into False.
What are 0 and the empty string?
500
value ← 10 value ← value + 5 value ← value * 2 The value left in value.
What is 30?
500
IF age > 12 THEN OUTPUT "Teen" ELSEIF age > 5 THEN OUTPUT "Child" ELSE OUTPUT "Baby" The output when age is 12.
What is Child?
500
value1 is 20 and value2 is 5. (value1 greater than 15) OR (value2 greater than 15) AND (value1 equals 20) Remember which operator runs first.
What is True?
500
mark = 60 if mark >= 70: print("A") elif mark >= 60: print("B") else: print("C") print("Finished") The output.
What is B and then Finished?
500
The program runs all the way through without stopping, but the answer it prints is wrong.
What is a logic error?
Continue
ESC
Reveal Correct Response
Spacebar
M
e
n
u
Team 1
0
+
-
Grade 7 Computing — Term 1 Review
No teams
1 team
2 teams
3 teams
4 teams
5 teams
6 teams
7 teams
8 teams
9 teams
10 teams
Custom
Press
F11
Select menu option
View > Enter Fullscreen
for full-screen mode
Edit
•
Print
•
Download
•
Embed
•
Share
JeopardyLabs