wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Minecraft Coding Quiz

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

What is a variable used for in coding?

a)

To store information for later use

b)

To decorate the game interface

c)

Only to count score

d)

To name characters

2.

Which special variable stores a location in 3D space in Minecraft MakeCode?

a)

Number variable

b)

Boolean variable

c)

String variable

d)

Position variable

3.

What type of data does a Number variable hold?

a)

Text

b)

Numbers

c)

True or false

d)

Position

4.

In the “Chicken Storm” activity, what was the variable used for?

a)

To count the number of chickens spawned

b)

To calculate score

c)

To change block colors

d)

To move the player

5.

In “Arrow Counter,” what does the arrows variable do?

a)

Counts how many arrows were shot

b)

Stores the player’s position

c)

Stores weapon names

d)

Spawns new bows

6.

What makes a good variable name?

a)

Short but unclear

b)

All uppercase

c)

Meaningful and descriptive

d)

Same for all variables

7.

How can you change the value of a variable in MakeCode?

a)

Using “Change variable to…” block

b)

Using “Repeat until…” block

c)

Using “If–Else” block

d)

You cannot change it

8.

What is a conditional in coding?

a)

A type of loop

b)

A rule that must be met before an action happens

c)

A debugging command

d)

A variable

9.

Which block in MakeCode is used for conditional logic?

a)

Loops

b)

Logic drawer (If–Then–Else)

c)

Math

d)

Agent

10.

What is the format of a basic conditional?

a)

Do–Repeat

b)

If (condition), then (action)

c)

When–Forever

d)

Wait–Until

11.

In the example “If you clean your room, then you can go out,” what happens if you don’t clean your room?

a)

You still go out

b)

You cannot go out

c)

You restart the program

d)

Nothing

12.

What does “Else” mean in an If–Then–Else statement?

a)

Always

b)

Stop

c)

Otherwise

d)

Repeat

13.

In the “How Old Are You?” project, what does the program compare?

a)

Height and weight

b)

Names of players

c)

Your age and your friend’s age

d)

Number of blocks placed

14.

What happens when the conditional test is true?

a)

The action inside the block runs

b)

The program stops

c)

The action outside the block runs

d)

Nothing happens

15.

In “Agent Tree Chopper,” what does the Agent do using conditionals?

a)

Move randomly

b)

Jump forever

c)

Wait for user input

d)

Chop trees while there is a block of wood above

16.

Agent dùng lệnh nào để dịch chuyển đến người chơi?

a)

agent.move(FORWARD,1)

b)

agent.teleportToPlayer()

c)

agent.turn(LEFT)

d)

agent.giveItem()

17.

Lệnh agent.till(DOWN) có tác dụng gì?

a)

Gieo hạt

b)

Cuốc đất thành farmland

c)

Phá block trước mặt

d)

Tạo nước

18.

Ta phải làm gì trước khi dùng agent.place(DOWN)?

a)

Chọn đúng slot bằng agent.setSlot()

b)

Teleport Agent

c)

Quay trái

d)

Nhảy lên

19.

Lệnh nào dùng để phá block dưới chân?

a)

agent.break()

b)

agent.destroy(DOWN)

c)

agent.clear(FORWARD)

d)

agent.remove(DOWN)

20.

Hàm nào kiểm tra block dưới chân?

a)

agent.check(DOWN)

b)

agent.inspect(AgentInspection.Block, DOWN)

c)

agent.look(DOWN)

d)

agent.scan(Block)

21.

Vì sao không so sánh "minecraft:grass"?

a)

Vì tên quá dài

b)

Agent trả về số, không phải chuỗi

c)

Vì syntax sai

d)

Vì thiếu dấu ngoặc

22.

Cách đúng để Agent đặt bone meal?

a)

agent.place(1,DOWN)

b)

agent.setSlot(2) rồi agent.place(DOWN)

c)

agent.giveItem(BONE_MEAL)

d)

agent.drop(DOWN)

23.

Vòng lặp lồng nhau dùng để làm gì?

a)

Teleport liên tục

b)

Tạo ruộng nhiều hàng & cột

c)

Xây tường

d)

Tạo skin mới

24.

Lệnh nào giúp thu hoạch lúa chín?

a)

agent.collectAll()

b)

agent.destroy(DOWN) khi block là WHEAT

c)

agent.jump()

d)

agent.place(FORWARD)

25.

Làm sao gieo lại hạt sau khi thu hoạch?

a)

Till lại đất

b)

agent.setSlot(1) rồi agent.place(DOWN)

c)

agent.collectAll()

d)

agent.turn(RIGHT)