wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

2025 python class first quiz

Total questions: 10

Worksheet time: 9mins

Name
Class
Date
1.

What is the output of the code above?

a)

3

b)

<class 'str'>

c)

<class 'int'>

d)

<class 'float'>

2.

What is the output of the code above?

a)

a

b)

<class 'str'>

c)

<class 'int'>

d)

<class 'float'>

3.

What is the output of the code above?

a)

78

b)

90

c)

168

d)

7890

4.

What is the value of variable a?

What is the value of variable b?

a)

21

312

b)

2

1312

c)

213

12

d)

21

12

5.

What is the output of the code above?

a)

13

b)

127

c)

255

d)

63

6.

Which of the following statements is not the three basic control structures in programming languages?

a)

iteration

b)

execution

c)

selection

d)

sequence

7.

What is the output of the code above?

a)

Buy A

b)

Buy B

c)

Do not Buy

d)

Buy A

Buy B

8.

What is the output of the code above?

a)

Buy A

70

b)

Buy B

50

c)

100

d)

Buy A

Buy B

20

9.

What is the output of the code above if the input is 10?

a)

1

3

5

b)

1

3

5

7

9

c)

1

2

3

4

5

d)

0

2

4

10.

Which of the following statements is not a possible output of the code above?

a)

0 is perfect square.

b)

1 is perfect square.

c)

2 is not perfect square.

d)

4 is perfect square.