Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python

Total questions: 8

Worksheet time: 8mins

Name
Class
Date
1.

counter = 17

result = 27

counter = result


What is the value of counter?

a)

17

b)

27

c)

44

d)

10

2.

apples = 17

oranges = 13

apples = apples + oranges


What is the value of apples?

a)

17

b)

13

c)

30

d)

None of the above

3.

i = 15

x = 11

x = i


What is the value of x?

a)

15

b)

11

c)

4

d)

26

4.

measure = 30

total = 45

x = 25

measure = x

total = measure

x = total

What is the value of x?

a)

45

b)

30

c)

25

d)

50

5.

answer = 11

answer = answer + 4

What is the value of answer?

a)

11

b)

4

c)

15

d)

None of the above

6.

value = 25

result = 20

value += 5

result -= 10

value = value/result


What i s the value of value?

a)

25

b)

20

c)

30

d)

3

7.

vibes = 15

chill = 20

chill = vibes + 10

vibes = vibes + 5

chill = chill -5


What is the value of chill?

a)

20

b)

15

c)

25

d)

10

8.

vibes = 20

chill = 10

chill = vibes/chill

chill += 8

chill = chill/10

a)

1

b)

10

c)

1.0

d)

20