Quiz — Lecture 07
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. Name the four debugging steps in order.
A2. What makes an input 'minimal' for a bug?
A3. What is a regression test?
A4. Give an example of fixing a symptom instead of the cause.
Section B
B1. The first item is missing from an echoed list. Write two hypotheses and the ONE test that kills one of them fastest.
B2. How does is prove a duplicate-list bug that == cannot see?
Exit ticket
Answer one of these on your card in 60 seconds (choose any one):
- Order the clinic protocol steps.
- Why fix nothing before the hypothesis is confirmed?
- What is a regression test for?
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.