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
A. 5 for Statement, 5 for Decision
B. 4 for Statement, 5 for Decision
C. 8 for Statement, 6 for Decision
D. 6 for Statement, 8 for Decision
B is the answer
can anyone draw a flowchart of above question.
I think Answer is B
Answer is B