wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python Pre-Cal Quiz

Total questions: 10

Worksheet time: 10mins

Name
Class
Date
1.

When this Python statement is executed, the expected out is_________.

a)

Error

b)

None

c)

abcd

d)

['a','b','c','d']

2.

______ is the expected output for the following statement.

print(9//2)

a)

4

b)

1

c)

4.5

d)

4.0

3.

What will be the expected output when the Python code of the snippet is executed?

a)

0123

b)

01234

c)

021324

d)

012324

4.

If the Python statement in the snippet is executed, the expected output is _________.

a)

Hello

b)

Hello World

c)

World

d)

dlroW olleH

5.

Given a function that does not return any value, what value is shown when executed?

a)

Int

b)

Error

c)

Void

d)

None

6.

What is the expected output of the following Python statements?

a)

GOOD DAY

b)

good day

c)

True

d)

None

7.

______ is the expected output of this Python code when executed.

a)

0 1 2 4 5 6

b)

0 1 4 5

c)

0 1 2

d)

4 5 6

8.

When this Python statement is being executed, which will be the expected output?

a)

Hello

Hello

IMU

b)

IMU

Hello

Hello

c)

Hello

IMU

IMU

d)

IMU

hello

hello

9.

If x = 15, the output is ____ when the following Python statement is executed.

x << 2

a)

51

b)

225

c)

60

d)

15

10.

Suppose the Python statement in the snippet is executed. The expected output is _______.

a)

[3,2,4]

b)

[2,3,4]

c)

True

d)

[3,4,2]