Kizspy | Question: 37
(Choose 1 answer)
Given the following pseudo-code, which is true about the minimum number of test cases required for full
statement and branch coverage:
Read A
Read B
IF A-B > 50 THEN
Print "Sum A and B"
IF B > 10 THEN
Print "B is greater than 10"
ENDIF
ENDIF
A. 1 test case for statement coverage, 2 for branch coverage
B. 1 test case for statement coverage, 3 for branch coverage
C. 2 test case for statement coverage, 2 for branch coverage
D. 2 test case for statement coverage, 3 for branch coverage