Activity 01
Pair Debug: Test Case Swap
Pairs write a simple program like a grade calculator. Partner A creates 5-7 test cases with inputs and expected outputs. Partner B runs them, logs failures, and proposes fixes. Switch roles and compare results.
Design a set of test cases to thoroughly evaluate a program's logic.
Facilitation TipIn Pair Debug: Test Case Swap, circulate and ask students to explain why they chose each test case before they run the code, focusing their attention on logic paths rather than syntax.
What to look forProvide students with a short, flawed program (e.g., a simple calculator with a logic error). Ask them to write down two specific test cases: one that reveals the logic error and one that shows the program working correctly. They should state the input and the expected output for each.