Activity 01
Pair Debug Relay: Logic Error Hunt
Pairs receive a program with a hidden logic error. One partner writes three test cases, the other runs them and predicts outputs. They switch roles to trace discrepancies and propose fixes, then test the revised code together.
Differentiate between syntax errors and logic errors in program execution.
Facilitation TipDuring Pair Debug Relay, provide a visible checklist of common logic error types so partners can systematically scan for each pattern.
What to look forPresent students with a short program containing a subtle logic error. Ask them to write down three specific test cases they would use to uncover the error and predict the output for each. Then, have them explain where the error might be located in the code.