Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 is Application Performance testing and Operational performance testing

2074


in transfer funds module, how you come to know that amount has been transferred successfully or not....explain in detail

1610


how to write the test cases for mark as read/unread mails for gmail inbox?and what are the testings we will do?

6667


Define brain stromming?

1109


When we use integration testing for any new system so why we required system testing.

2023


Explain branch coverage and decision coverage.

1148


what is date field test case

1997


Encapsulation of attributes and operations inside objects makes it easy to obtain object state information during testing. is it true.explain

2143


What are the disadvantages of manual testing?

1259


what we have to read to gain knowledge in banking and financial domain(software testing) for 4+ experience

2235


what is the cheklist to check SRS document (after releasing) as a test ingineer and how can we check

2205


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?

5007


Difference between smoke and sanity testing

1892


What is Wound Fixing?

2404


test cases for compose functionality of gmail

2111