Test as you go
Answers are for parents and teachers.
1
Plan a short story with a boy, a dog and a ball in three parts. Write one algorithm for each part. Which part will you test first?
Any three parts. The part that comes first in the story is tested first, and then each next part.
2
The algorithm is: start on tap, move right 4, say “Yes!”, stop. Look at the program. Find the error and say how to fix it.
The move block says 3. Change it to 4.
3
Draw two characters. The first one sends a yellow message. The second one starts on a yellow message, moves up 2 and says “Yay!”. Write the algorithm for the second character.
1 Start on yellow message. 2 Move up 2. 3 Say “Yay!”. 4 Stop.
4
Tell a grown-up why we test after every part of a program.
Errors are found early and are easy to fix.
5
Make a bug hunt for a family member: an algorithm of three steps and a drawn program with one mistake. Can they find it?
The mistake can be a wrong number, a wrong block or the wrong start block.