Physics I / Debugging and validation
Practice question · Put in order

Order these steps into the scientific debugging method.

Hints
  1. A bug you cannot reproduce cannot be studied, reproduction comes first.
  2. This is the experimental method wearing a programmer’s hat: hypothesis → experiment → observation.
Show the answer
  1. Reproduce the failure reliably
  2. Form a hypothesis about the cause
  3. Design a minimal test that would confirm or refute it
  4. Run the test and observe
  5. Fix the cause, and keep the test to guard against regressions
Why

Debugging is science: reproduce, hypothesize, experiment, conclude. The final twist is uniquely software’s, the confirming test becomes a permanent tripwire so the same bug can never sneak back.

Read the lesson: Debugging and validation →

Practise Debugging and validation

The app has 9 more questions on this lesson, and keeps your place in the course. Physics I is free to start.

More questions on Debugging and validation