Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python with Minecraft: Quiz 2

Total questions: 10

Worksheet time: 10mins

Name
Class
Date
1.

What will the print() function return for the given values?

a)

You can craft a TNT block

b)

Not enough materials to craft TNT

2.

Which one will build 100 block stairs faster?

a)

Builder

b)

Agent

3.

What does zombie != 2 mean?

a)

The number of zombies is equal to 2

b)

The number of zombies is greater or equal to 2

c)

The number of zombies is not equal to 2

d)

The number of zombies is greater than 2

4.

What does the str() function do?

a)

Treats the given value as text

b)

Changes text into numbers

c)

Displays commands in chat

d)

Changes the player's position

5.

What is if used for?

a)

To check a condition

b)

To change player's position

c)

To repeat some action

d)

To negate

6.

If we want the script to be executed all the time we can use:

a)

True

b)

if

c)

while True:

d)

while :

7.

What does the following code do?

int(variable)

a)

Treats the variable as text

b)

Treats the variable as a number

c)

Treats the variable as an image

d)

Treats the variable as a logical value

8.

How does the following code work?

blocks.test_for_block(REDSTONE_BLOCK, pos(0, -1, 0)

a)

Returns True if it detects a redstone bock under the player

b)

Returns False if it detects a redstone block under the player

c)

Returns True if it detects a redstone bock over the player

d)

Returns True if it detects a redstone bock next to the player

9.

What value does array numbering starts with?

a)

1

b)

0

c)

-1

d)

2

10.

What function will you use to enter data into the program?

a)

input()

b)

len()

c)

print()

d)

str()