Micro:bit Hardware Sensors MakeCode and Coding

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Catherine Halcomb
Catherine Halcomb
Community Contributor
Quizzes Created: 4687 | Total Attempts: 7,047,796
| Questions: 20 | Updated: Nov 23, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. Is a temperature reading from the micro:bit sensor an input or an output?

Explanation

A temperature reading is an input because the micro:bit’s sensor detects the surrounding temperature and provides that information to the device.

Submit
Please wait...
About This Quiz
Micro:Bit Hardware Sensors Makecode and Coding - Quiz

This quiz covers micro:bit hardware, sensors, and MakeCode programming. It checks knowledge of the LED grid, accelerometer, compass, radio groups, variables, data types, loops, and program files. These basics help learners understand how micro:bit code interacts with its hardware.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. Which of the following are valid coding concepts used in MakeCode? Select all that apply.

Explanation

MakeCode uses variables to store data, if/then statements to make decisions, and loops to repeat actions. Programs also work with inputs and outputs, such as reading button presses and controlling LEDs. Spreadsheets are not a coding concept used in MakeCode.

Submit

3. Which of the following are built-in sensors on the micro:bit? Select all that apply.

Explanation

The micro:bit has a built-in accelerometer for detecting movement and tilt, a compass for sensing direction, and a temperature sensor. It does not include a camera or GPS receiver.

Submit

4. To make two micro:bits communicate using radio, they must be set to the same radio ____.

Explanation

Both micro:bits must use the same radio group so they can send and receive each other’s messages.

Submit

5. A variable is a named ____ that holds a value which can change.

Explanation

A variable is like a named box: it stores a value, and that value can change.

Submit

6. Match each data type to its correct example.

Submit

7. Match each micro:bit component to its correct description.

Submit

8. Bluetooth on the micro:bit can connect to phones and tablets.

Explanation

The micro:bit has Bluetooth, which lets it communicate wirelessly with compatible phones and tablets, such as through a companion app.

Submit

9. The origin (0,0) on the micro:bit LED grid is located at the bottom-left, just like in maths.

Explanation

On the micro:bit LED grid, the origin (0,0) is at the top-left, not the bottom-left. Therefore, the statement is false.

Submit

10. The micro:bit's light sensor uses the LEDs reversed to measure surrounding light levels.

Explanation

The micro:bit measures light by briefly reverse-biasing LEDs in its display and detecting the tiny electrical current produced by incoming light. The stronger the light, the larger the measured signal.

Submit

11. How many LEDs are on the micro:bit display?

Explanation

The micro:bit display has a 5 × 5 grid of LEDs, so it contains 25 LEDs in total.

Submit

12. Which sensor detects the Earth's magnetic field and must be calibrated before use?

Explanation

A compass uses a magnetic sensor to detect Earth’s magnetic field and determine direction. Calibrating it before use helps ensure accurate readings.

Submit

13. What file format must be copied onto the micro:bit to run a program?

Explanation

A micro:bit runs programs by receiving a compiled `.hex` file, which is copied onto the device. The other options are source or text file formats, not the format typically used to transfer a program to the micro:bit.

Submit

14. What does the reset button on the micro:bit do?

Explanation

The reset button restarts the micro:bit, causing the currently loaded program to run again from the beginning. It does not erase programs or download new files.

Submit

15. Which loop in MakeCode runs its code continuously and never stops on its own?

Explanation

The Forever loop repeatedly runs its code for as long as the program is active. It doesn’t stop on its own; it ends only when the program is stopped or reset.

Submit

16. Two micro:bits are set to radio groups 7 and 12. Will they communicate with each other?

Explanation

Micro:bits only receive radio messages from devices set to the same radio group. Since one is on group 7 and the other on group 12, they won’t communicate until their radio groups match.

Submit

17. Which data type stores only true or false values?

Explanation

Boolean stores one of two values: true or false.

Submit

18. Which sensor on the micro:bit would you use to build a digital spirit level?

Explanation

An accelerometer detects the direction of gravity, so the micro:bit can use its readings to determine whether it is level or tilted.

Submit

19. What are the coordinates of the bottom-right LED on the micro:bit display?

Explanation

The micro:bit display is a 5×5 grid, with coordinates numbered from 0 to 4 along each axis. The bottom-right LED is therefore at (4,4).

Submit

20. What are the coordinates of the top-left LED on the micro:bit display?

Explanation

The micro:bit’s 5×5 LED display uses zero-based coordinates, with (0,0) at the top-left corner.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Is a temperature reading from the micro:bit sensor an input or an...
Which of the following are valid coding concepts used in MakeCode?...
Which of the following are built-in sensors on the micro:bit? Select...
To make two micro:bits communicate using radio, they must be set to...
A variable is a named ____ that holds a value which can change.
Match each data type to its correct example.
Match each micro:bit component to its correct description.
Bluetooth on the micro:bit can connect to phones and tablets.
The origin (0,0) on the micro:bit LED grid is located at the...
The micro:bit's light sensor uses the LEDs reversed to measure...
How many LEDs are on the micro:bit display?
Which sensor detects the Earth's magnetic field and must be calibrated...
What file format must be copied onto the micro:bit to run a program?
What does the reset button on the micro:bit do?
Which loop in MakeCode runs its code continuously and never stops on...
Two micro:bits are set to radio groups 7 and 12. Will they communicate...
Which data type stores only true or false values?
Which sensor on the micro:bit would you use to build a digital spirit...
What are the coordinates of the bottom-right LED on the micro:bit...
What are the coordinates of the top-left LED on the micro:bit display?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!