wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Micro:bit Programming Quiz

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

What is the first step to start coding a Micro:bit?

a)

Open a text editor

b)

Visit the MakeCode website

c)

Connect the Micro:bit to Wi-Fi

d)

Install special software

2.

What is the purpose of debugging in programming?

a)

To create new variables

b)

To correct errors in the code

c)

To make the code run faster

d)

To add comments to the code

3.

What type of device is a Micro:bit?

a)

A smartphone

b)

A calculator

c)

A tiny computer

d)

A game console

4.

What do the buttons on a Micro:bit do?

a)

They display outputs

b)

They provide inputs

c)

They run processes

d)

They power the device

5.

What is an example of an OUTPUT on the Micro:bit?

a)

Pressing a button

b)

Displaying a pattern on LEDs

c)

Storing a variable

d)

Writing an IF statement

6.

Which programming structure is used for making decisions?

a)

Loops

b)

Variables

c)

Functions

d)

IF statements

7.

What is iteration in programming?

a)

Storing data

b)

Debugging code

c)

Repeating code

d)

Displaying outputs

8.

How many times can a loop run?

a)

It depends on the programmer’s choice

b)

Always 10 times

c)

Only once

d)

Until the Micro:bit is turned off

9.

What are variables used for?

a)

Storing information

b)

Displaying outputs

c)

Providing inputs

d)

Debugging programs

10.

How should variable names be chosen?

a)

Randomly

b)

As short as possible

c)

Descriptive and clear

d)

Written in capital letters only

11.

What is the purpose of a function in a program?

a)

To store information

b)

To repeat a section of code

c)

To provide inputs

d)

To display outputs

12.

How can you call a function in a program?

a)

By pressing a button

b)

By writing the function name

c)

By using a variable

d)

By using the debugger

13.

What type of error occurs when there is a spelling mistake in code?

a)

Runtime error

b)

Logical error

c)

Syntax error

d)

Debugging error

14.

Which of the following is NOT an example of a syntax error?

a)

Missing a semicolon

b)

Using the wrong variable name

c)

Misspelling a command

d)

Forgetting to define a function

15.

What is selection in programming?

a)

Choosing variable names

b)

Deciding which parts of code to execute

c)

Repeating code multiple times

d)

Organizing code into functions

16.

Where is the data stored in a variable?

a)

On the Micro:bit LEDs

b)

In the program’s memory

c)

On the debug console

d)

In the MakeCode website

17.

Which of the following is NOT an example of an OUTPUT?

a)

A scrolling text message

b)

A LED pattern

c)

A beep sound

d)

Pressing button A

18.

What should you do to make code easier to read?

a)

Use fewer comments

b)

Avoid debugging

c)

Use clear variable names

d)

Write longer functions

19.

What does the process on a Micro:bit do?

a)

Executes the program logic

b)

Outputs data to LEDs

c)

Receives user inputs

d)

Stores variables

20.

What is the advantage of using blocks in MakeCode?

a)

It makes debugging impossible

b)

It makes coding faster and easier

c)

It prevents errors completely

d)

It automatically writes comments

21.

How is looping until a condition is met described?

a)

Infinite iteration

b)

Conditional iteration

c)

Function iteration

d)

Syntax iteration

22.

Why is documenting code important?

a)

To correct errors

b)

To make the code harder to read

c)

To help others understand the code

d)

To store data

23.

What is the output of the Micro:bit if no program is running?

a)

LEDs light up randomly

b)

It plays a sound

c)

There is no output

d)

It displays an error message

24.

What does a syntax error usually prevent?

a)

The program from being written

b)

The program from running

c)

The program from storing variables

d)

The program from outputting results

25.

What is an example of iteration on a Micro:bit?

a)

Defining a function

b)

Storing a variable

c)

Repeating a pattern 10 times

d)

Making a decision

26.

Why is it helpful to use functions?

a)

To make the code longer

b)

To use the Micro:bit LEDs more

c)

To avoid repeating similar code

d)

To store multiple variables

27.

What must every program start with in MakeCode?

a)

Defining variables

b)

Creating a new project

c)

Adding an OUTPUT

d)

Testing for errors

28.

How do you check if your code is free of errors?

a)

By running the program

b)

By debugging the code

c)

By adding functions

d)

By using the INPUT buttons

29.

What is a runtime error?

a)

An error found when the program is running

b)

An error in the program’s syntax

c)

An error in the variable names

d)

An error caused by debugging

30.

What does a loop with a specific number of repetitions do?

a)

Runs until the user stops it

b)

Runs a set number of times

c)

Stops after 10 seconds

d)

Runs indefinitely