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 the challenging position faced in the testing not in point of management point of view it must be in the point of while testing the application?
What is the limit for test steps?It should be 10/20/30etc
When new application ready to test than whats your testing strategies?
what are your achievements in your organization ? Guyz very very urgent , help me
what is entry and exit criteria and explain it?
How do u determine,what to be tested?
write the test case for Bulb & Mobile phone
Can you please explain about the erp project
What is the difference between GUI Testing,UI testing and Usability TEsting
What is test out put?
10 scenarios for security testing using gmail applications?
If date field is a text field write test cases to validate it?
What is known as data-driven testing?
How do you define a testing policy?
In which all places, testing is done?One is from the server by calling server name.Can u suggest others?