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 meant by entry criteria and exit criteria in software testing?
what is test scenario and test condition?
Explain about PET Model?
If anyone have attended interview with deloitte for the post of senior manual test engineer. Please share the interview process and the questions asked. How to prepare for the interview. Thanks in advance
What is exploratory testing and when should it be performed?
HOW TO CREATE SRS REVIEW REPORT TO PL?
What types of software testing are available?
Hello Varun, Kindly send me the material as well as sample question papers as i am interested in doing the certification. Kindly help me out in this regard. Here is my mail ID: bjyothitesting@gmail.com
Could anyone share FAQs for Test Manager position...
Can i get answers for telecom testing for eg telecom billing rating can be tested
What is test management?
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
When should you opt for manual testing over automation testing?
can u plz give an example for regression testing with example.
What are all the netwoking tools, hardware tools and software tools required for testing a web-based n client server applicatopn?