ISTQB
CTFL18 · Question #408
How many minimum test cases are required to cover 100% Statement coverage and Decision coverage? Consider the following pseudo-code If (Walking && Midnight) If (Raining) Take umbrella and search…
The correct answer is A. 5 for Statement, 5 for Decision. See the full explanation below for the reasoning.
Question
How many minimum test cases are required to cover 100% Statement coverage and Decision coverage? Consider the following pseudo-code If (Walking && Midnight) If (Raining) Take umbrella and search light Else Take searchlight End IF Else if (Running && Sunshine) IF (Raining) Take umbrella End IF Else keep doing what you were doing End IF
Options
- A5 for Statement, 5 for Decision
- B4 for Statement, 5 for Decision
- C8 for Statement, 6 for Decision
- D6 for Statement, 8 for Decision
How the community answered
(29 responses)- A76% (22)
- B3% (1)
- C14% (4)
- D7% (2)
Community Discussion
No community discussion yet for this question.