NEW
Font size
Worksheets2F-3 | Python Quiz #1 | 14.11.2025
Total questions: 15
Worksheet time: 15mins
Which keyword is used to start a conditional statement in Python?
for
while
if
switch
What will this code print?
Yes
No
Error
Nothing
Which operator means “equal to” in Python?
=
==
:=
equals
What does the else part of an if statement do?
Runs when condition is true
Runs when condition is false
Always runs
Repeats condition
What is printed by this code?
Five
10
Not Five
Error
Which of these operators checks for “greater than or equal to”?
=>
=<
>=
<=
What is the output?
Small
Big
Error
Nothing
What will if not False: do?
Do nothing
Print False
Execute code under if
Show error
What will this code print?
Even
Odd
Error
None
What is the output?
Yes
No
Error
None
What is the output of this code?
Teen
Adult
None
Error
What will happen here?
A
B
C
Error
What will be printed?
X
Y
Equal
Nothing
What is the output?
Chain works
No
Error
True
What will the following code print?
A
B
C
None
