Build, test and reset
Answers are for parents and teachers.
1
This algorithm has a bug: 1 Start when the green flag is clicked. 2 If the Owl is touching the Moon, then say ‘Hoot!’. 3 Glide 2 seconds to the Moon. The Owl reaches the Moon but never hoots. Why? Write the steps in a better order.
Step 2 is checked only once, at the start, before the Owl has moved, so the condition is false. Better: 1 Start when the green flag is clicked. 2 Glide 2 seconds to the Moon. 3 If the Owl is touching the Moon, then say ‘Hoot!’.
2
Write a start script, in words, for a Robot that moves, shrinks and hides during a program.
When the green flag is clicked: go to its starting x and y, set size to 100 %, and show.
3
Draw a table with the columns Test, Expected and Actual. Fill in two tests for a Moth that says ‘Warm!’ when it touches a Lamp.
For example: space pressed once far from the Lamp: expected no speech; space pressed until it touches the Lamp: expected says Warm!. Accept sensible actual results.
4
Write two rules for a safe password and one thing you must never do with it.
For example: make it long and hard to guess; do not use your name or birthday. Never share it with friends. Tell only a parent or carer.
5
(if you have a computer or tablet) Build the Tortoise and Flag program from the lesson. Press the right arrow key 10 times. What does the Flag say?
The Flag says ‘Winner!’ when the Tortoise reaches it, on the 10th press, and the program stops. If your sprites are big, they may touch a press or two earlier, because ‘touching’ means that any parts of the two pictures overlap.