Lesson details

Key learning points

  1. In this lesson, we will make a micro:bit based step counter following a design. We will test and debug our code and look for ways to improve the sensitivity of our counter.

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 is an algorithm in a design?
A diagram of the flow of the program
Correct answer: A set of clear and precise, ordered instructions
The appearance of the project
The task that needs to be completed
Q2.
If you're making a step counter, when should the variable 'step' be set?
When the program ends
Correct answer: When the program starts
Whilst the program is running
Q3.
The order in which commands are executed (run) in a program is the...
Algorithm
Appearance
Correct answer: Program flow
Task

3 Questions

Q1.
Which is the correct order?
Code, test, design
Correct answer: Design, code, test
Test, design, code
Q2.
Debugging is the process of finding and fixing errors.
False
Correct answer: True
Q3.
Debugging by isolating code is...
Replacing all the code
Swapping a piece of code for another
Correct answer: Testing a small piece of code on its own

Lesson appears in

UnitComputing / Sensing

Computing