Physics I / Debugging and validation
Practice question · Multiple choice

A program runs without errors and produces plausible numbers that are wrong. Why is this harder to catch than a crash?

Hints
  1. Ask what tells you something has gone wrong in each case.
  2. What would you check a simulation against?
Show the answer

C. Because nothing signals the failure; a crash announces itself

Why

Silence is the danger. Validating against analytical solutions, limiting cases and conserved quantities is how scientific code is made trustworthy, the absence of a crash proves nothing.

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