Physics I / Debugging and validation
Practice question · Fill in the blanks

Complete the description of debugging.

The first step in debugging is to ______ the problem reliably. Then ______ the faulty section of code. After applying a ______, run ______s to confirm correctness.

Word bank: reproduce · isolate · fix · ignore · test

Hints
  1. You cannot fix what you cannot reliably make happen again.
  2. Confirming the fix comes after applying it, not before.
Show the answer

The first step in debugging is to reproduce the problem reliably. Then isolate the faulty section of code. After applying a fix, run tests to confirm correctness.

Why

Systematic debugging follows: reproduce \to isolate \to fix \to test.

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