micro:bit Display & Buttons Quiz
micro:bit Display & Buttons Quiz
Test your knowledge of display methods, images, and button events. — 6 questions
About the micro:bit Display & Buttons Quiz
Test your knowledge of display methods, images, and button events. This quiz has 6 multiple-choice questions. Each question has one correct answer, and you see an explanation straight after you answer, so you learn from every question — including the ones you get wrong. There is no time limit and nothing to sign up for; your answers are not stored.
The questions follow the material in the LED Display & Buttons on BBC micro:bit guide and the micro:bit Display & Buttons Cheatsheet. Read them first if you want to prepare, or take the quiz cold to find the gaps in what you know.
Questions in this quiz
Preview the questions below. Each answer and its explanation are hidden until you choose to reveal them, so you can still take the quiz above without spoilers.
1. What does display.scroll("Hello") do?
Show answer
Answer: B. Moves text across the display from right to left
display.scroll() animates text moving across the 5x5 display from right to left, one column at a time.
2. What is the brightness range for a single LED pixel on the micro:bit?
Show answer
Answer: C. 0 to 9
The set_pixel() function accepts brightness values from 0 (off) to 9 (maximum brightness).
3. What is the coordinate of the top-left LED on the 5x5 display?
Show answer
Answer: A. (0, 0)
The display uses (x, y) coordinates where (0,0) is the top-left corner. x goes left to right (0߀“4) and y goes top to bottom (0߀“4).
4. What is the difference between button_a.is_pressed() and button_a.was_pressed()?
Show answer
Answer: B. is_pressed() is true while held; was_pressed() is true once per press and clears the flag
is_pressed() reports the current state (true while held). was_pressed() returns true if the button was pressed since the last call, then resets.
5. How do you define a custom image on the micro:bit?
Show answer
Answer: B. Passing a 5x5 string with brightness digits 0߀“9 to Image()
Image() accepts a string of 5 rows separated by colons, each with 5 digits (0߀“9) representing LED brightness.
6. What is pin_logo on the micro:bit V2?
Show answer
Answer: B. A capacitive touch sensor on the gold logo
On V2, the gold Raspberry Pi logo on the front of the board is a capacitive touch sensor accessible as pin_logo.
How to use this quiz
- Answer every question before reading the explanations below — retrieving an answer from memory is what makes it stick.
- Note the questions you missed and revisit the matching section of the guide or cheatsheet.
- Retake the quiz a day or two later. Spaced repetition is one of the most reliable ways to remember technical details.