View Single Post
Old 18-04-08, 05:26 PM   #14 (permalink)
wilfeevans
Junior Member
 
Join Date: Apr 2008
Posts: 9
Thanks: 0
Thanked 1 Times in 1 Posts
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 1 wilfeevans is on a distinguished road
Re: ISTQB Questions Papers

Can any one answer for the below question and explain how does u had selected that anser so that i could get clarified

Given the following code, which is true about the minimum number of test cases required for full statement and branch coverage:
Read P
Read Q
IF P+Q > 100 THEN
Print “Large”
ENDIF
If P > 50 THEN
Print “P Large”
ENDIF

a) 1 test for statement coverage, 3 for branch coverage
b) 1 test for statement coverage, 2 for branch coverage
c) 1 test for statement coverage, 1 for branch coverage
d) 2 tests for statement coverage, 3 for branch coverage
e) 2 tests for statement coverage, 2 for branch coverage
wilfeevans is offline   Reply With Quote
The Following User Says Thank You to wilfeevans For This Useful Post:
k_bhavna_84 (07-10-08)