38.9k views
5 votes
Your tests achieved 50% decision coverage. What is a consequence of this fact?

A. Each decision was evaluated with at least one outcome.
B. You achieved at most 50% statement coverage.
C. At least one decision had to be evaluated to FALSE.
D. At least one executable statement was executed.

1 Answer

3 votes

Final answer:

50% decision coverage means that each decision was evaluated with at least one outcome, ensuring that at least one of the possible branches (true or false) has been taken for every decision point in the code.

Step-by-step explanation:

If tests achieved 50% decision coverage, then the consequence is that each decision in the code was evaluated with at least one outcome, which is option A. This means that for every conditional statement in the program, at least one of the possible paths (true or false) has been executed during testing. However, achieving 50% decision coverage does not necessarily mean that we have achieved 50% statement coverage, since not all executable statements are tied to decisions. Also, nothing in the definition of decision coverage guarantees that at least one decision was evaluated to FALSE or that any particular outcome was reached, just that each decision was evaluated.

User Lestat
by
8.0k points

No related questions found