Hi, Below is a question on white box testing. Kindly help
me in answering it. How many test cases are needed to
obtain 100% branch coverage. This question was asked in
ISTQB foudation level exam - Dec21 2008.

Read(A,C)

If(A<10) then Print A;

Endif

If(C>100) then Print C is greater then A

else if(C<100) then print only C

Endif else

Options -
a. 4
b. 3
c. 2
d. 1

Kindly answer with explanation so that it would be easy to
understand

Answer Posted / kajal

answer is a.4

1 test case to check if system can read a and c
2 to check if a<10
3 to check if c is > 100 and < 100
to check if a and c are printed

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are there more defects in the design phase or in the coding phase?

927


Who are all involved in an inspection meeting?

672


Can you explain the pdca cycle and where testing fits in?

775


What is function points??????

1541


Hi i am looking for Test Engineer Job, i have done the course, but i don't have work experience on it, Is it So important to have real time Exp or knowledge is enough? and please let me know like how i can improve for the interview. You can send me a mail on this id: rashmi_vastred@yahoo.co.in

1620






any one please send me any test case examples with tabular columns in manual testing

1750


write test case for gmail login page

4641


How did you do unit testing in your project?

702


we are about to implement a Test tool to test the performance of website, so what script does a tester should know (friends plz help me)

1519


what is functional testing terminologies

1911


What is the difference between pilot and beta testing?

704


How do you scope out the size of the testing effort?

1914


HOW TO CREATE SRS REVIEW REPORT TO PL?

1906


Did any one completed CSTE certiication? can u send sample question papers? how to apply that? pls send it to my mail id - dsnathi@gmail.com THANKS IN ADVANCE

1658


State a generalized process for load test? Or explain how you did it previously.

2081