Fixing mistakes
Answers are for parents and teachers.
1
Write an algorithm of five steps for laying the table for dinner. Then swap two steps on purpose. Ask a family member to find the bug.
The family member should find the two swapped steps and explain why the order matters (for example, the plates go on before the food).
2
Look at this path. Write the algorithm. Then write the same algorithm with one bug.
The correct algorithm is: start, right 3, down 2, stop. The buggy one changes a number or a direction.
3
An algorithm for feeding a pet fish has these steps: 1 Close the lid. 2 Open the lid. 3 Sprinkle in a little food. Fix the bug.
Open the lid, sprinkle in a little food, then close the lid. Step 1 moves to the end.
4
Write the steps for making a paper boat or for tidying your toys. Add one extra step that does not belong and ask a family member to find it.
Any sensible steps in order. The family member should be able to point to the extra step.
5
Tell a grown-up what debugging means and give one example of a bug.
Debugging means finding and fixing a mistake. An example is steps in the wrong order.