Activity 01
Pairs: Trace Table Walkthrough
Provide 3-4 short buggy algorithms on paper or in pseudocode. Pairs fill trace tables to predict variable states, then test in a simple editor like Scratch or Python console. They revise tables based on runs and propose fixes before sharing one with the class.
Justify why it is impossible to prove a program is 100 percent bug-free through testing alone.
Facilitation TipDuring the Trace Table Walkthrough, circulate to ensure pairs are documenting variable changes at each step rather than guessing the outcome.
What to look forProvide students with a short, buggy Python function and a partially filled trace table. Ask them to complete the trace table and identify the specific line number causing the logical error, explaining their reasoning.