Computer Science I / Testing Small Programs
Practice question · True or false

A program that passes one hundred typical-case tests is guaranteed to have no bugs.

Hints
  1. Ask whether typical cases exercise the boundaries where bugs hide.
  2. Testing can show bugs are present but cannot show they are absent.
Show the answer

False

Why

False. A hundred typical cases prove nothing about the edge cases — an empty input, a zero, an off-by-one boundary — where most real bugs live. Testing reveals the presence of bugs cheaply, but no finite suite can guarantee their absence.

Read the lesson: Testing Small Programs →

Practise Testing Small Programs

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

More questions on Testing Small Programs