Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

IF statements and MakeCode basics worksheet (Grade 5)

Total questions: 5

Worksheet time: 3mins

Name
Class
Date
1.

What does an IF statement do in coding?

a)

Makes the code colorful

b)

Repeats the code many times

c)

Makes decisions based on a condition

d)

Stops the program completely

2.

What happens when a condition in an IF statement is True?

a)

The code inside IF runs

b)

Nothing happens

c)

The ELSE part runs

d)

The program closes

3.

Which block shows an IF statement in MakeCode?

a)

repeat

b)

show icon

c)

if / else

d)

on start

4.

What is a “condition”?

a)

A line of text

b)

A test that can be True or False

c)

A sound the micro:bit plays

d)

A name of a variable

5.

If the light is red, what should happen in the traffic light program?

a)

The car goes fast

b)

The car stops

c)

The light turns blue

d)

The program restarts