Quiz — Lecture 12
Section A from memory, one line each. Section B shows your reasoning - marks are for method, not final answers. Answers are discussed in class; the exit ticket goes on a card.
Section A
A1. Why one fix per test cycle?
A2. What is the minimal repro discipline?
A3. Name a defect class a happy-path suite misses.
A4. What does the regression suite protect after the lab?
Section B
B1. Write the minimal input that exposes a phantom-zero (empty string scored as 0).
B2. A swap defect (a, b = b, a miswritten) survives normal tests - what test finds it?
Exit ticket
Answer one of these on your card in 60 seconds (choose any one):
- Why must the reproduction step precede any hypothesis?
- What does 'fix without breaking green tests' require?
- Name the isolation technique used on cs-048.
Homework
- Before: skim the four student pages; attempt case 1 on paper.
- After: write a five-line pseudocode solution for any case you did not
- Enrichment (optional): the stretch question on each case page.