Lesson details

Key learning points

  1. In this lesson, we will explore micro:bit hardware components. We will also write and execute our first Python programs on the micro:bit.

Licence

This content is made available by Oak National Academy Limited and its partners and licensed under Oak’s terms & conditions (Collection 1), except where otherwise stated.

Loading...

5 Questions

Q1.
Which of the following are inputs on the micro:bit?
Correct answer: Accelerometer
Correct answer: Buttons
Correct answer: Compass
Correct answer: GPIO pins
LEDs
Correct answer: Light sensor
Correct answer: Radio
Correct answer: Temperature sensor
Q2.
Which of the following are outputs on the micro:bit?
Accelerometer
Buttons
Compass
Correct answer: GPIO pins
Correct answer: LEDs
Light sensor
Correct answer: Radio
Temperature sensor
Q3.
Which button on the mu editor translates your program and transfers it to the micro:bit?
Files
Correct answer: Flash
Load
Save
Q4.
What type of error would occur if you missed a bracket out of your code?
Logic
Runtime
Correct answer: Syntax
Q5.
When coding in micro Python in mu, what is the correct line of code to start your micro:bit programs with?
from * input microbit
Correct answer: from microbit import *
from microbit input *
import microbit *

6 Questions

Q1.
What kind of loop was used to iterate through images in the list data structure?
Correct answer: for
honey nut
while
Q2.
Select the line of code that successfully turns off all the LEDs.
Correct answer: display.clear()
display.off()
display.show(00000)
leds.clear(all)
Q3.
In the following line of code, display.set_pixel(x,y,value), what is 'x' referring to?
Brightness of the LED
Correct answer: Column number of the LED
Row number of the LED
Q4.
In the following line of code, display.set_pixel(x,y,value), what is 'y' referring to?
Brightness of the LED
Column number of the LED
Correct answer: Row number of the LED
Q5.
In the following line of code, display.set_pixel(x,y,value), what is 'value' referring to?
Correct answer: Brightness of the LED
Column number of the LED
Row number of the LED
Q6.
If we nest our code in a while True: loop, will it:
Correct answer: Run forever
Run once
Run three times
Run until you say the word False

Lesson appears in

UnitComputing / Physical Computing Programming

Computing