wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python Battle Royale: Who Will Survive in the End?❤️🤔

Total questions: 15

Worksheet time: 12mins

Name
Class
Date
1.

Guess the output🤔

a)

10

b)

15

c)

5

d)

Error

2.

Guess the output

a)

Int

b)

Str

c)

Float

d)

Error

3.

Guess the output

a)

8

b)

35

c)

53

d)

Error

4.

Print(100/5+2*3)

a)

62

b)

26

c)

26.0

d)

Error

5.

x = 5

y = 11

x+=9

x+=y

Print (x*y)

a)

275

b)

257

c)

725

d)

Error

6.

x = 77

y = x % 10

x+=y

Print(x%2) 

a)

0

b)

1

c)

2

d)

Error

7.

x = input("Enter a number: ")

y = input("Enter another number: ")

print(x + y)

a)

Enter a number: Enter another number:

b)

Enter a number:Enter another number:

c)

Enter a number:

Enter another number:

d)

Error

8.

print("2 + 3 =", 2 + 3)

print("2" + "3")

a)

>> 5

>> 23

b)

>> 2+3 = 5

>> 5

c)

>> 2+3 = 5

>> 23

d)

Error

9.

print("Hello" + " " * 3 + "World")

a)

Error

b)

HelloWorld

c)

Hello World

d)

HelloWorld

10.

print("Cat" * 0 + "Dog")

a)

CatDog

b)

Error

c)

Dog

d)

Cat

11.

a=10

b=a% 4

c=b * 2

print (c)

a)

2

b)

4

c)

8

d)

Error

12.

x = 10

x = x + 2 * 3

x = x - (x // 4) * 2

x = x + 5 - 3

x = x - x // 3

a)

30

b)

None

c)

15

d)

Error

13.

Which is NOT a legal variable name?

a)

_myvar = 20

b)

my-var = 20

c)

Myvar = 20

d)

my_var = 20

14.

What is variable unpacking?

(a)  

15.

What should we write to print all the reserved Keywords?

4 lines