CTAL-TTA_001 · Question #17
How many test cases would be needed to achieve 100% decision coverage? 1 credit [K2]
The correct answer is A. 1. Option A (1 test case) is correct because the code or flowchart being referenced contains no decision points - no if/else, loops, or conditional branches. When there are zero decisions, there are no true/false outcomes to exercise, so a single test case trivially achieves 100%…
Question
How many test cases would be needed to achieve 100% decision coverage? 1 credit [K2]
Options
- A1
- B2
- C3
- D4
How the community answered
(59 responses)- A88% (52)
- B7% (4)
- C3% (2)
- D2% (1)
Explanation
Option A (1 test case) is correct because the code or flowchart being referenced contains no decision points - no if/else, loops, or conditional branches. When there are zero decisions, there are no true/false outcomes to exercise, so a single test case trivially achieves 100% decision coverage.
Option B (2) is the most common trap: it assumes at least one binary decision exists, requiring one test for the true path and one for the false path - but that only applies when a decision is present. Options C (3) and D (4) would be needed for progressively more complex decision structures (e.g., nested conditions or multiple independent branches), neither of which applies to a decision-free program.
Memory tip: Think of decision coverage as "cover every exit of every diamond on the flowchart." No diamonds = no exits to cover = one test case does it all.
Topics
Community Discussion
No community discussion yet for this question.