WorksheetsPython with Minecraft: Quiz 2
Total questions: 10
Worksheet time: 10mins
What will the print() function return for the given values?
You can craft a TNT block
Not enough materials to craft TNT
Which one will build 100 block stairs faster?
Builder
Agent
What does zombie != 2 mean?
The number of zombies is equal to 2
The number of zombies is greater or equal to 2
The number of zombies is not equal to 2
The number of zombies is greater than 2
What does the str() function do?
Treats the given value as text
Changes text into numbers
Displays commands in chat
Changes the player's position
What is if used for?
To check a condition
To change player's position
To repeat some action
To negate
If we want the script to be executed all the time we can use:
True
if
while True:
while :
What does the following code do?
int(variable)
Treats the variable as text
Treats the variable as a number
Treats the variable as an image
Treats the variable as a logical value
How does the following code work?
blocks.test_for_block(REDSTONE_BLOCK, pos(0, -1, 0)
Returns True if it detects a redstone bock under the player
Returns False if it detects a redstone block under the player
Returns True if it detects a redstone bock over the player
Returns True if it detects a redstone bock next to the player
What value does array numbering starts with?
1
0
-1
2
What function will you use to enter data into the program?
input()
len()
print()
str()
