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 function points??????
IN SQL SERVER 2005, With out using Query, hw can u break down USER NAME & PASSWORD to enter the software.
What are the review documents used for testing?
how many modules in ur bank project? what functionalities r there?how did u check? could u plz expalin ur banking project?
value momentum
Can you explain tailoring?
how mapp the defect id in quality center?
what is the difference between PEGA based web application testing versus web application testing?
Can you please provide me the standard testcase review templete and Test plan templete.In my company we are not following any Standards templete so.Please guve me some Excell attachments.
Explain the importance of agile testing?
What is the difference between static testing and dynamic testing?
What is desk checking and control flow analysis
1.For a single module how many builds are possible 2.what will be the max or min time to finish up an single module
What does a manual tester need to become proficient with db testing?
how to write defects in excel sheets when defects occured