micro:bit Display & Buttons Quiz

micro:bit Display & Buttons Quiz

Test your knowledge of display methods, images, and button events. — 6 questions

Question 1 of 6 Score: 0

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?

  1. Shows all letters at once
  2. Moves text across the display from right to left
  3. Prints to the serial console
  4. Shows only the first letter
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?

  1. 0 to 255
  2. 0 to 1023
  3. 0 to 9
  4. 0 to 100
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?

  1. (0, 0)
  2. (1, 1)
  3. (4, 4)
  4. (2, 2)
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()?

  1. They are identical
  2. is_pressed() is true while held; was_pressed() is true once per press and clears the flag
  3. was_pressed() is faster
  4. is_pressed() only works in MakeCode
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?

  1. Using Image.CUSTOM
  2. Passing a 5x5 string with brightness digits 0߀“9 to Image()
  3. Loading a PNG file
  4. Using display.draw()
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?

  1. The USB connector pin
  2. A capacitive touch sensor on the gold logo
  3. The power indicator LED
  4. An analog output pin
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.

Related