View Single Post
Old 05-08-08, 05:59 PM   #30 (permalink)
mailramaa@gmail.com
Senior Member
 
mailramaa@gmail.com's Avatar
 
Join Date: Oct 2006
Location: Pune
Posts: 193
Thanks: 19
Thanked 29 Times in 22 Posts
Thanks: 19
Thanked 29 Times in 22 Posts
Rep Power: 7 mailramaa@gmail.com will become famous soon enough mailramaa@gmail.com will become famous soon enough mailramaa@gmail.com will become famous soon enough mailramaa@gmail.com will become famous soon enough
Re: ISTQB Questions Papers

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

Answer:
I think
"1 test for statement coverage, 2 for branch coverage" Option "b" is the correct answer,
Any suggestions?

__________________
Regards,
Rama
" Failure is the oppurtunity to begin again, more Intelligently! "

Last edited by mailramaa@gmail.com; 05-08-08 at 06:13 PM. Reason: Included the Question
mailramaa@gmail.com is offline   Reply With Quote