wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

2F-3 | Python Quiz #1 | 14.11.2025

Total questions: 15

Worksheet time: 15mins

Name
Class
Date
1.

Which keyword is used to start a conditional statement in Python?

a)

for

b)

while

c)

if

d)

switch

2.

What will this code print?

a)

Yes

b)

No

c)

Error

d)

Nothing

3.

Which operator means “equal to” in Python?

a)

=

b)

==

c)

:=

d)

equals

4.

What does the else part of an if statement do?

a)

Runs when condition is true

b)

Runs when condition is false

c)

Always runs

d)

Repeats condition

5.

What is printed by this code?

a)

Five

b)

10

c)

Not Five

d)

Error

6.

Which of these operators checks for “greater than or equal to”?

a)

=>

b)

=<

c)

>=

d)

<=

7.

What is the output?

a)

Small

b)

Big

c)

Error

d)

Nothing

8.

What will if not False: do?

a)

Do nothing

b)

Print False

c)

Execute code under if

d)

Show error

9.

What will this code print?

a)

Even

b)

Odd

c)

Error

d)

None

10.

What is the output?

a)

Yes

b)

No

c)

Error

d)

None

11.

What is the output of this code?

a)

Teen

b)

Adult

c)

None

d)

Error

12.

What will happen here?

a)

A

b)

B

c)

C

d)

Error

13.

What will be printed?

a)

X

b)

Y

c)

Equal

d)

Nothing

14.

What is the output?

a)

Chain works

b)

No

c)

Error

d)

True

15.

What will the following code print?

a)

A

b)

B

c)

C

d)

None