Starter quiz
- What is an example of an input device?
- a monitor
- a speaker
- a button ✓
- a printer
-
- Which of the following is an example of an output?
- a keyboard
- a mouse
- a microphone
- an LED display ✓
-
- What is the purpose of an 'if statement' in programming?
- to repeat a block of code multiple times
- to store data in a variable
- to make decisions based on a condition ✓
- to print a message to the screen
-
- Which of the following is an example of a condition that can be used in an if statement?
- `"Hello, world!"`
- `10`
- `temperature > 25` ✓
- `print("Welcome")`
-
- What will be the output of the following Python code? ``` age = 15 if age >= 18: print("You can vote!") else: print("You cannot vote yet.") ```
- You can vote!
- You cannot vote yet. ✓
- 15
- An error message.
-
- Which of the following are valid ways to represent a condition in Python?
- `x == 5` ✓
- `name != "Bob"` ✓
- `score = 100`
- `temperature < 0` ✓
-
Exit quiz
- Which of the following statements about the micro:bit is true?
- It can run multiple programs simultaneously.
- It can directly connect to the World Wide Web.
- It is a small, programmable computer that can execute one program at a time. ✓
- Programs for the micro:bit can only be written directly on the device itself.
-
- Where do you write programs for the micro:bit?
- directly on the micro:bit
- on a separate device using a special app
- on a computer using a block-based editor ✓
- You can't write programs for the micro:bit; it comes with pre-loaded programs.
-
- Which component of the micro:bit is used to display information like numbers or letters?
- buttons
- LED display ✓
- light sensor
- temperature sensor
-
- What is the purpose of the buttons on the micro:bit?
- to measure the temperature
- to detect movement
- to capture user input and trigger actions in a program ✓
- to display information
-
- Which sensor on the micro:bit can detect how much light is falling on it?
- temperature sensor
- light sensor ✓
- accelerometer
- compass
-
- Match the micro:bit component to its function.
- accelerometer⇔measures movement and detects gestures ✓
- compass⇔detects magnetic north ✓
- radio⇔allows communication with other micro:bits ✓
- GPIO pins⇔can be used for both input and output ✓
Worksheet
Loading worksheet ...
Presentation
Loading presentation ...
Video
Lesson Details
Key learning points
- Physical computers make use of hardware components to carry out actions in the real world.
- Hardware components can be programmed on the micro:bit to carry out actions.
- The micro:bit emulator allows you to test block-based code before downloading it.
- Programs for the micro:bit can be transfered to the device using a USB cable.
Common misconception
Computers always have screens so that the user knows what processing has been performed.
Computers can carry actions using a variety of output devices. Physical computers are often used to carry out physical actions based on detected inputs so do not need a screen to display information.
Keywords
Hardware component - a physical part of a computer or device that helps perform its function, such as wires, buttons, or an LED display
Input - data that is sent to a program to be processed
Output - information produced by a computer system as a result of processing data
+