Compare rejection with observed failure

A team compares two versions of a teaching language using 40 independent request handlers. Both versions allow addition only between integers and perform no automatic conversion.

  • 26 handlers contain no type-incompatible operations.
  • 9 handlers each contain one text-plus-integer addition that their test input executes.
  • 5 handlers each contain one text-plus-integer addition in a branch that their test input does not execute.

The static version rejects any handler containing an incompatible operation anywhere in its source. The dynamic version checks an addition only when it executes. There are no other errors, and each handler receives exactly one test input.


How many more handlers does static analysis reject than fail with a type error during the dynamic tests? Answer in handlers, as an exact whole number, to zero decimal places. Compare rejected handlers with observed failing handlers.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Type Systems Questions: