Activity 01
Pair Swap: Buggy Code Challenge
Each pair writes a 20-line program with two intentional errors of different types. Partners swap code, use a debugging checklist to identify issues, then fix and test. Pairs reunite to explain their process and improvements.
Analyze the difference between a syntax error and a logic error, providing examples of each.
Facilitation TipDuring Pair Swap: Buggy Code Challenge, circulate to ensure pairs rotate roles evenly and both students contribute to discussions about error symptoms.
What to look forPresent students with three short code snippets, each containing a different type of error (syntax, logic, runtime). Ask them to identify the type of error in each snippet and briefly explain why it is that type.