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

Order the steps of a systematic debugging process.

Hints
  1. Reproducing the fault has to come before narrowing it down.
  2. Verification belongs at the end, after the change is made.
Show the answer
  1. Reproduce the bug with a specific input
  2. Narrow down the faulty code section
  3. Form a hypothesis about the cause
  4. Fix the code and run tests to confirm
Why

Disciplined debugging avoids random changes that may introduce new bugs.

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