wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python Math

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is the displayed value for Python coding below:


print(min(100, 200, 300, 400))

a)

100

b)

200

c)

300

d)

400

2.

What is the displayed value for Python coding below:


print(max(100, 200, 300, 400))

a)

100

b)

200

c)

300

d)

400

3.

What is the displayed value for Python coding below:


print(abs(-7.25))

a)

7.25

b)

-7.25

c)

+7.25

d)

+7.25-

4.

What is the displayed value for Python coding below:


print(pow(8, 3))

a)

6561

b)

6424

c)

64

d)

24

5.

What is the displayed value for Python coding below:


print(math.pi)

a)

3.141592653589793

b)

3.142

c)

31.41592653589793

d)

π

6.

What is the displayed value for Python coding below:


print(math.ceil(2.6))

a)

3

b)

2

c)

2.5

d)

3.5

7.

What is the displayed value for Python coding below:


print(math.floor(2.6))

a)

3

b)

2

c)

2.5

d)

3.5

8.

What is the displayed value for Python coding below:


print(min(-100, -200, 100, 200))

a)

-100

b)

-200

c)

100

d)

200

9.

What is the displayed value for Python coding below:


print(max(-100, -200, +100, +200))

a)

+100

b)

+200

c)

100

d)

200

10.

What is the displayed value for Python coding below:


print(pow(2, 2))

a)

4

b)

8

c)

2

d)

16