NEW
Font size
WorksheetsMinecraft Coding Quiz
Total questions: 25
Worksheet time: 13mins
What is a variable used for in coding?
To store information for later use
To decorate the game interface
Only to count score
To name characters
Which special variable stores a location in 3D space in Minecraft MakeCode?
Number variable
Boolean variable
String variable
Position variable
What type of data does a Number variable hold?
Text
Numbers
True or false
Position
In the “Chicken Storm” activity, what was the variable used for?
To count the number of chickens spawned
To calculate score
To change block colors
To move the player
In “Arrow Counter,” what does the arrows variable do?
Counts how many arrows were shot
Stores the player’s position
Stores weapon names
Spawns new bows
What makes a good variable name?
Short but unclear
All uppercase
Meaningful and descriptive
Same for all variables
How can you change the value of a variable in MakeCode?
Using “Change variable to…” block
Using “Repeat until…” block
Using “If–Else” block
You cannot change it
What is a conditional in coding?
A type of loop
A rule that must be met before an action happens
A debugging command
A variable
Which block in MakeCode is used for conditional logic?
Loops
Logic drawer (If–Then–Else)
Math
Agent
What is the format of a basic conditional?
Do–Repeat
If (condition), then (action)
When–Forever
Wait–Until
In the example “If you clean your room, then you can go out,” what happens if you don’t clean your room?
You still go out
You cannot go out
You restart the program
Nothing
What does “Else” mean in an If–Then–Else statement?
Always
Stop
Otherwise
Repeat
In the “How Old Are You?” project, what does the program compare?
Height and weight
Names of players
Your age and your friend’s age
Number of blocks placed
What happens when the conditional test is true?
The action inside the block runs
The program stops
The action outside the block runs
Nothing happens
In “Agent Tree Chopper,” what does the Agent do using conditionals?
Move randomly
Jump forever
Wait for user input
Chop trees while there is a block of wood above
Agent dùng lệnh nào để dịch chuyển đến người chơi?
agent.move(FORWARD,1)
agent.teleportToPlayer()
agent.turn(LEFT)
agent.giveItem()
Lệnh agent.till(DOWN) có tác dụng gì?
Gieo hạt
Cuốc đất thành farmland
Phá block trước mặt
Tạo nước
Ta phải làm gì trước khi dùng agent.place(DOWN)?
Chọn đúng slot bằng agent.setSlot()
Teleport Agent
Quay trái
Nhảy lên
Lệnh nào dùng để phá block dưới chân?
agent.break()
agent.destroy(DOWN)
agent.clear(FORWARD)
agent.remove(DOWN)
Hàm nào kiểm tra block dưới chân?
agent.check(DOWN)
agent.inspect(AgentInspection.Block, DOWN)
agent.look(DOWN)
agent.scan(Block)
Vì sao không so sánh "minecraft:grass"?
Vì tên quá dài
Agent trả về số, không phải chuỗi
Vì syntax sai
Vì thiếu dấu ngoặc
Cách đúng để Agent đặt bone meal?
agent.place(1,DOWN)
agent.setSlot(2) rồi agent.place(DOWN)
agent.giveItem(BONE_MEAL)
agent.drop(DOWN)
Vòng lặp lồng nhau dùng để làm gì?
Teleport liên tục
Tạo ruộng nhiều hàng & cột
Xây tường
Tạo skin mới
Lệnh nào giúp thu hoạch lúa chín?
agent.collectAll()
agent.destroy(DOWN) khi block là WHEAT
agent.jump()
agent.place(FORWARD)
Làm sao gieo lại hạt sau khi thu hoạch?
Till lại đất
agent.setSlot(1) rồi agent.place(DOWN)
agent.collectAll()
agent.turn(RIGHT)
