Read the case and decide
Learning goal: Use a boundary case to explain a loop’s behavior.
Students write a loop intended to count scores of 70 or higher. A program returns the expected count for the sample. You have five minutes before students submit.
What you didn’t know yet
Original, simulated material for this case.
The student’s condition is score > 70. The sample contained scores of 62, 80, and 91, so it passed.
On 69, 70, and 71, the program counts one score and the requirement says it should count two.
Make your next decision
Ask for a prediction before the run
For scores 69, 70, and 71, predict the count. Trace which scores pass the condition. Explain the difference between the expected and observed count.
What to look for: Look for 70 being included and for an explanation tied to “or higher,” not only a working final line.
Learning progression: what to look for next
These are possible patterns of reasoning, not fixed stages or a validated scale. Use what students show to decide whether to reteach, adjust support, or give a new challenge.
- Starting evidenceThe student’s condition is score > 70. The sample contained scores of 62, 80, and 91, so it passed.
- A scaffold to tryFor scores 69, 70, and 71, predict the count. Trace which scores pass the condition. Explain the difference between the expected and observed count.
- Evidence of the next stepLook for 70 being included and for an explanation tied to “or higher,” not only a working final line.
Reflect and decide what to do next
- Did students choose a test that could reveal the error?
- Would they independently include the boundary value on the next program?
Why this works
Prediction and explanation expose thinking that a passing output alone cannot reveal.
Black & Wiliam (2009), Developing the theory of formative assessment
Your teaching plan
Edit this plan for your setting. Don’t enter student names or identifying details. Nothing is saved or sent by the Lab.
Does the program work, or did one test pass?
Grade 10 · Computer Science
Standards connection: 9-12.CT.9 (direct): Choose systematic test cases, including boundary cases, to evaluate and refine a program.