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 / varshab
Ans is 4 as there are two branches.For these two branches
we need to test for both true & false conditions. hence to
achieve 100% branch coverage we need to write 4 test cases.
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is Windows Test Technologies? Where i will get all information of it.
Could some one tell me test cases for multi line text boxes like Notes field?
what is quality Factor
Explain Single View Testing ?
What kind of input do we need from the end user to begin proper testing?
can anyone tell me the scenarios for online banking transaction ?
Hi friends Does anyone have screen shot of POWERMHS and please can anyone post anything which will be helpful to understand POWERMHS. thanks.
what is the technical challange you faced in your module.please ans me the question i just want example can me any example please very important
How do you test a web application for dump and deaf??
whats the reason to display the password(not in encrypted form) in the script in load runner but not in QTP?
i need some objective type papers for my certification
I am a ISTQB cerfity tester with 3 yrs experience(kolkata) , I left my current commpany due to some problem but since two months I did not get new job , why? is my age is 33 yrs and I am married . If anybody have any answer please let me know, my email id sangitadas1981@gmail.com/yahoo.co.in
What is virtual creation tool?
hi, I m looking for a career in manual web testing. so PLZ anybody who have the practical knowledge of dis field help me. GIVE ME UR MAIL ID so that i can ask regarding some doubts. my MAIL ID is ankurtester819@gmail.com
What is quality center? How many built in tables does quality center have?