Show it and count it
Answers are for parents and teachers.
1
Write an algorithm for a micro:bit. When button A is pressed it picks a random number from 1 to 3. If the number equals 1 it shows a heart, else it shows nothing.
One answer: 1 Start when button A is pressed. 2 Set a variable called Pick to a random number from 1 to 3. 3 If Pick = 1, then show a heart icon. 4 Else clear the screen. 5 Stop.
2
Use a pencil to make a counter on paper. Tap the paper 8 times. The limit is 5, and the counter resets to 0 after 5. Write what the counter shows after each tap.
1, 2, 3, 4, 5 (then reset to 0), 1, 2, 3.
3
‘If the card is blue, then the pupil goes to the library, else the pupil goes to the hall.’ Name the input, the condition and the two outcomes.
Input: the colour of the card. Condition: the card is blue. If true: the pupil goes to the library. If false: the pupil goes to the hall.
4
Choose show number, show string or show icon for each. (a) 15 (b) Hello (c) a happy face (d) Bus 7
(a) show number, (b) show string, (c) show icon, (d) show string, because it has letters.
5
Make a list of two rules for staying safe when you use a coding website with an adult.
For example: keep your full name, school and address private, and tell a trusted adult if something online worries you.