NEW
Font size
WorksheetsMicro:bit Programming Quiz
Total questions: 30
Worksheet time: 15mins
What is the first step to start coding a Micro:bit?
Open a text editor
Visit the MakeCode website
Connect the Micro:bit to Wi-Fi
Install special software
What is the purpose of debugging in programming?
To create new variables
To correct errors in the code
To make the code run faster
To add comments to the code
What type of device is a Micro:bit?
A smartphone
A calculator
A tiny computer
A game console
What do the buttons on a Micro:bit do?
They display outputs
They provide inputs
They run processes
They power the device
What is an example of an OUTPUT on the Micro:bit?
Pressing a button
Displaying a pattern on LEDs
Storing a variable
Writing an IF statement
Which programming structure is used for making decisions?
Loops
Variables
Functions
IF statements
What is iteration in programming?
Storing data
Debugging code
Repeating code
Displaying outputs
How many times can a loop run?
It depends on the programmer’s choice
Always 10 times
Only once
Until the Micro:bit is turned off
What are variables used for?
Storing information
Displaying outputs
Providing inputs
Debugging programs
How should variable names be chosen?
Randomly
As short as possible
Descriptive and clear
Written in capital letters only
What is the purpose of a function in a program?
To store information
To repeat a section of code
To provide inputs
To display outputs
How can you call a function in a program?
By pressing a button
By writing the function name
By using a variable
By using the debugger
What type of error occurs when there is a spelling mistake in code?
Runtime error
Logical error
Syntax error
Debugging error
Which of the following is NOT an example of a syntax error?
Missing a semicolon
Using the wrong variable name
Misspelling a command
Forgetting to define a function
What is selection in programming?
Choosing variable names
Deciding which parts of code to execute
Repeating code multiple times
Organizing code into functions
Where is the data stored in a variable?
On the Micro:bit LEDs
In the program’s memory
On the debug console
In the MakeCode website
Which of the following is NOT an example of an OUTPUT?
A scrolling text message
A LED pattern
A beep sound
Pressing button A
What should you do to make code easier to read?
Use fewer comments
Avoid debugging
Use clear variable names
Write longer functions
What does the process on a Micro:bit do?
Executes the program logic
Outputs data to LEDs
Receives user inputs
Stores variables
What is the advantage of using blocks in MakeCode?
It makes debugging impossible
It makes coding faster and easier
It prevents errors completely
It automatically writes comments
How is looping until a condition is met described?
Infinite iteration
Conditional iteration
Function iteration
Syntax iteration
Why is documenting code important?
To correct errors
To make the code harder to read
To help others understand the code
To store data
What is the output of the Micro:bit if no program is running?
LEDs light up randomly
It plays a sound
There is no output
It displays an error message
What does a syntax error usually prevent?
The program from being written
The program from running
The program from storing variables
The program from outputting results
What is an example of iteration on a Micro:bit?
Defining a function
Storing a variable
Repeating a pattern 10 times
Making a decision
Why is it helpful to use functions?
To make the code longer
To use the Micro:bit LEDs more
To avoid repeating similar code
To store multiple variables
What must every program start with in MakeCode?
Defining variables
Creating a new project
Adding an OUTPUT
Testing for errors
How do you check if your code is free of errors?
By running the program
By debugging the code
By adding functions
By using the INPUT buttons
What is a runtime error?
An error found when the program is running
An error in the program’s syntax
An error in the variable names
An error caused by debugging
What does a loop with a specific number of repetitions do?
Runs until the user stops it
Runs a set number of times
Stops after 10 seconds
Runs indefinitely
