CS FundamentalsHardProduct-company MCQ pattern

Mutation testing creates 50 mutants of a program. 5 of them are equivalent mutants (they behave identically to the original). The test suite kills 36 mutants. What is the mutation score?

  1. A. 80%
  2. B. 90%
  3. C. 72%
  4. D. 64%

Correct answer: A. 80%

Mutation score = killed/(total − equivalent) = 36/(50 − 5) = 36/45 = 0.80. Dividing by all 50 gives 72%, the usual mistake, because equivalent mutants can never be killed.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic