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


Please Help Members By Posting Answers For Below Questions

What kind of testing to be done in client server application and web application? Explain

746


Can anyone please answer the below question on Manual Testing: Tell me about atleast 5 bugs you come across in your last testing?

1589


difference between change management and configuration management

1578


iam new testing, i want improve writing test cases and bug defect etc? any on give suggestion pls?

1515


How to integrate Bugzilla with QTP?

2285






List out test deliverables?

681


how many modules in ur bank project? what functionalities r there?how did u check? could u plz expalin ur banking project?

1865


Hi, Please can one tell me how to test the usability testing, which method has to be used, how to write the report? Thanks Deepa

1588


What is Independent Testing?

1601


I am DD. I am working as a Tester in e-learning company? IS there scope for content testing? or i have to change to software testing. pls guide me...

1675


how is market for testing in banglore,chennai,pune,delhi?

1711


hai friends i did my bcom (distance with out inter)and iam pursuing mca(distance alagappa university)iam learning testing cource in ameerpet can i elgibel for testing jobs pls guide me … …and send details to rangavijetha@gmail.com..thanks

1353


What will be the QA roles and responsibilities in Health care stream like BCBS,can someone please explain me any example project regarding health care services in web-based application?

1686


how can we give (ASSIGN) bug privitorirs and seviroty to the bug explain with exanple

1806


How to derive test data from the design documents?

1580