CS FundamentalsVery hardProduct-company placement

A codebase reports 100% line coverage, but the mutation score is only 20%. What is the most likely explanation?

  1. A. The mutation tool is broken
  2. B. The code has no bugs
  3. C. Most mutants are equivalent mutants
  4. D. The tests execute the code but assert little or nothing about the results, so they cannot detect changed behaviour

Correct answer: D. The tests execute the code but assert little or nothing about the results, so they cannot detect changed behaviour

Coverage only shows code was run; mutation score shows whether tests notice when it behaves differently. Tests without meaningful assertions give high coverage and low mutation scores.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic