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 / madhu
3 cases would be required
as we need to exercise both positive and negative scenarios
of the 2 branches
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
write testcases for open dialogbox
What's the relationship between environment reality and test phases?
What if an organization is growing so fast that fixed testing processes are impossible? What to do in such situations?
What is difference between Bug resolution meeting & Bug Review Committee? Who are participants?
What is the difference between Functional testing and Unit Functionality testing?
What icon is used in WinRunner to get an explanation of the syntax of TSL?
How should validation activities be handled?
Can anybody help i put the pharma and bank project in my resume, but i dont know what to tell about them, any body tell the where can i get the information about them,what i need to tell about these applications,please help me
Can you explain tpa analysis?
How could you present test strategy for the product testing?
what the purpose of requirement phase
What is smoke test? Do you use any automation tool for smoke testing?
Manual and automation how do they help in bringing out quality product? Explain?
Could some one tell me test cases for multi line text boxes like Notes field?
In cycle 1 we have 100 test cases out of which 95 test cases are PASS and 5 test cases are FAIL. So in cycle 2 how many test cases performed as a part of regression testing?