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
What is Application Performance testing and Operational performance testing
in transfer funds module, how you come to know that amount has been transferred successfully or not....explain in detail
how to write the test cases for mark as read/unread mails for gmail inbox?and what are the testings we will do?
Define brain stromming?
When we use integration testing for any new system so why we required system testing.
Explain branch coverage and decision coverage.
what is date field test case
Encapsulation of attributes and operations inside objects makes it easy to obtain object state information during testing. is it true.explain
What are the disadvantages of manual testing?
what we have to read to gain knowledge in banking and financial domain(software testing) for 4+ experience
what is the cheklist to check SRS document (after releasing) as a test ingineer and how can we check
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?
Difference between smoke and sanity testing
What is Wound Fixing?
test cases for compose functionality of gmail