Common mistakes
Difficulty levels
Questions about this topic
Does passing all my chosen tests prove the program works for every input?+
No. Test distinct cases and explain why each step preserves the required meaning and why the algorithm terminates
Why use a small counterexample?+
It can isolate the exact condition, initialisation or loop boundary that disagrees with the specification, making the cause easier to trace
Why rerun tests that passed before the repair?+
A change can correct one case while breaking another. Keeping earlier tests helps detect that regression
Can I use a calculator?+
No. This topic is practised without a calculator
Which year level and chapter is this?+
Year 8 Mathematics, chapter 2: Linear expressions, relations and equations