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
- You cannot fix what you cannot reliably make happen again.
- 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 isolate fix test.
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
- Your projectile simulation says a thrown ball climbs forever. Which debugging move gives the most information…
- A program runs without errors and produces plausible numbers that are wrong. Why is this harder to catch than…
- Order the steps of a systematic debugging process.
- Order these steps into the scientific debugging method.
- Sort these errors by category.