Multiple choice technology testing

Decision Coverage.

  1. Testing the boolean expressions which are not in control structures

  2. Entire expression is considered as boolean expression irrespective of logical-and and logical-or operators

  3. Coverage except switch-statement cases, exception handlers

  4. All of the above.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Decision coverage (also called branch coverage) requires that each decision point takes both true and false outcomes. It treats the entire boolean expression as a single decision - the expression as a whole must evaluate to both true and false, regardless of AND/OR operators within it. This differs from condition coverage which requires each sub-condition to be tested.