CS FundamentalsHardInfosys · ISTQB-style

In which situation does a suite with 100% decision (branch) coverage still NOT achieve 100% multiple-condition coverage?

  1. A. When every decision contains only one simple condition
  2. B. When the code has no decisions at all
  3. C. When a decision combines two or more conditions, since branch coverage needs only one true and one false outcome per decision
  4. D. When the code contains a loop

Correct answer: C. When a decision combines two or more conditions, since branch coverage needs only one true and one false outcome per decision

Multiple-condition coverage needs every combination of the conditions within a decision (2^n), while branch coverage needs just the two outcomes. With single-condition decisions the two criteria coincide.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic