Activity 01
Pairs: Buggy Code Relay
Pairs get code with 3-5 deliberate errors. One partner traces execution aloud while the other notes issues; they switch to propose and test fixes using print statements. Document the process in a shared log before verifying with sample inputs.
Differentiate between syntax errors and logical errors in code.
Facilitation TipFor Buggy Code Relay, provide each pair with a different buggy snippet and a timer to keep the relay moving, ensuring all students engage in rapid, focused debugging.
What to look forPresent students with two code snippets, one with a syntax error and one with a logical error. Ask them to identify which is which and explain the difference in their own words. For example: 'Snippet A has a missing semicolon. Snippet B calculates the average incorrectly. Which is a syntax error and why?'