Font size
WorksheetsPython if statement part3
Total questions: 11
Worksheet time: 10mins
What statement will go into the label?
John is getting ice cream
John is getting apple juice
John is getting baby formula
John is getting nothing
The ‘else’ statement is optional in Python
TRUE
FALSE
There can be an else statement without an if statement
TRUE
FALSE
How many "else" statements can you pair with a single "if" statement
1
<10
<20
As many as is needed.
Which of these is used in Python to add a third, fourth, etc outcome to a scenario?
elif
else if
iff
elsa
What will get printed as a result of the code?
Packers
Packers are #1
Cowboys are #1
Error
belowFreezing = temperature < 32
What is belowFreezing?
variable that is an integer
variable that is an boolean
variable that is a string
boolean expression
arithmetic expression
What is printed?
BRRR its cold out there!
Do you want to make a snowman?
Nothing
majorGPA=3.0
overallGA=3.2
What value of numCredits will set the compound boolean expression to False?
119
120
121
word = "apples"
What is printed?
in range
out of range
