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?
- A. 80%
- B. 90%
- C. 72%
- 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.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- Before release, 120 defects are found in system testing and 30 in user acceptance testing. After release, customers report 50 more. What…
- Arrange these types of module coupling from WORST (tightest) to BEST (loosest).
- What is the cyclomatic complexity of this function, counting the conditional expression and the except clause as decisions? python def…
- How many of the following are white-box (structural) testing techniques? 1. Branch (decision) coverage 2. Basis path testing 3. Boundary…
- You cherry-pick commit X from branch feature onto main. Which statement is correct?
- git push origin main is rejected with a 'non-fast-forward' error. What does it mean, and what is the correct fix on a shared branch?