All mock tests are FREE till 31 December — register to save your progress

In the context of software testing, which of the following statements is/are NOT correct?
P: A minimal test set that achieves 100% path coverage will also achieve 100% statement coverage.
Q: A minimal test set that achieves 100% path coverage will generally detect more faults than one that achieves 100% statement coverage.
R: A minimal test set that achieves 100% statement coverage will generally detect more faults than one that achieves 100% branch coverage.
Choose the correct answer from the options given below:

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: A. R only

Explanation

Coverage criteria form a subsumption hierarchy: path coverage subsumes branch coverage, which subsumes statement coverage. P is correct, because exercising every path necessarily executes every statement on those paths. Q is correct, because path coverage is the strongest of the three and a test set satisfying it generally exposes more faults than one that merely touches every statement. R is the false statement: branch coverage is stronger than statement coverage — it forces both the true and the false outcome of every decision, catching faults in empty else-branches that statement coverage misses — so statement coverage cannot generally detect more faults than branch coverage. Hence only R is not correct.

More System Software and Operating System questions