WorksheetsG11 FT Quiz 1 - Python Conditions
Total questions: 10
Worksheet time: 7mins
An "if statement" is written by using the IF keyword.
True
False
The _____ keyword is Python's way of saying "if the previous conditions were not true, then try this condition".
if
elif
else
ifelse
The ____ keyword catches anything which isn't caught by the preceding conditions.
if
elif
else
ifelse
You can also have an else without the elif:
True
False
The ____ keyword is a logical operator, and is used to combine conditional statements. Both statements should be true.
and
or
not
exor
The ____ keyword is a logical operator, and is used to combine conditional statements. At least one statement should be true.
and
or
not
exor
The ____ keyword is a logical operator, and is used to reverse the result of the conditional statement:
and
or
not
exor
What is the output of the following code?
True
False
Error
Blank
What is the output of the following code?
True
False
Error
Blank
What is the output of the following code?
b is not greater than a
b is greater than a
Error
Blank
