CS FundamentalsHardProduct-company placement · ISTQB-style

How many of these statements about coverage criteria are correct? 1. 100% branch coverage guarantees 100% statement coverage. 2. 100% condition coverage guarantees 100% branch coverage. 3. MC/DC subsumes branch (decision) coverage. 4. All-uses data-flow coverage subsumes all-defs coverage. 5. 100% path coverage is practical for any program containing loops.

  1. A. 2
  2. B. 4
  3. C. 5
  4. D. 3

Correct answer: D. 3

1, 3 and 4 are correct. Condition coverage can make every condition true and false while the decision always comes out the same, and a loop can create unboundedly many paths, so 2 and 5 are false.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic