Lesson details

Key learning points

  1. In this lesson, we will explore how 'if... then... else...' statements are used to direct the flow of a program. We will then use this learning to create a fortune teller project to run on a 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...

3 Questions

Q1.
What do you use the emulator for?
To create the code for your program
To download your program on to a micro:bit
Correct answer: To test your program
Q2.
When do you flash a program?
When you are adding the blocks to the coding area
When you run the program on the device
Correct answer: When you transfer the program from your computer to the micro:bit
Q3.
Which input devices have been introduced in this lesson? (tick 2)
Correct answer: Buttons A and B
Correct answer: The accelerometer
The compass
The light sensor

3 Questions

Q1.
Using the flow diagram below, which object has not got an engine, but can fly?
An image in a quiz
Aeroplane
Bicycle
Correct answer: Hot air balloon
Motorbike
Q2.
What would be displayed on the LEDs if button A is pressed?
An image in a quiz
A cross
Correct answer: A tick
A tick followed by a cross
Q3.
What text would be displayed if number 3 was generated?
An image in a quiz
Correct answer: Maybe
No
Yes

Lesson appears in

UnitComputing / Sensing

Computing