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
- Consider the following statements: S1: White-box tests are based on specifications; better at telling whether program meets specification,…
- Consider the method mcq(): int mcq(boolean a, boolean b, boolean c, boolean d) { int ans = 1; if (a) { ans = 2; } else if (b) { ans = 3; }…
- What is the normal order of activities in which traditional software testing is organised? 1. Integration Testing 2. System Testing 3. Unit…
- Which of the following testing techniques ensures that the software product runs correctly after the changes during maintenance?
- Which of the following statement(s) is/are TRUE with regard to software testing? I. Regression testing technique ensures that the software…
- For a program of k variables, boundary value analysis yields ______ test cases.