CS FundamentalsHardProduct-company placement

A tester has no reliable way to know the correct output for a complex scientific simulation, so she checks that doubling every input mass doubles the computed momentum. Which idea is she using?

  1. A. Metamorphic testing, which checks relations between outputs to work around the test-oracle problem
  2. B. Mutation testing
  3. C. Equivalence partitioning
  4. D. Smoke testing

Correct answer: A. Metamorphic testing, which checks relations between outputs to work around the test-oracle problem

When the expected output of a single run is unknown (the oracle problem), metamorphic testing checks a known relation between the outputs of related runs. Mutation testing evaluates the test suite instead of the program.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic