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 / 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


Please Help Members By Posting Answers For Below Questions

send the senario template

1958


What is the difference between IE, Opera & Mozilla Firefox in web Testing and which brower will think that is much better?

2108


Explain Test Plan with example? Explain following in the test plan with examples What is being tested? What are pass/fail criteria? When will each test occur? What Hardware & Software environment is required? What features must be tested? What features will not be tested? What are the responsibilities of individuals & organisation in the project?

2682


Explain the advantages of automation over manual testing?

1171


Hi, what do you mean by internal auditing? what are the things they do in internal auditing?what they review? THNX in Advance

2098


What are differences between Testing in Uncontrolled Environment and Abnormal Environment?

2895


Hi, Im B.E 2011 pasout,worked in back office till now, but now im searching for job into manual testing with fake exp of 1 year..Plz suggest me how to prepare for an intervw? how to gain real time testing knowledge? Is dere any site where i can practice testing?

2435


we are about to implement a Test tool to test the performance of website, so what script does a tester should know (friends plz help me)

2004


How do you perform configuration management with typical revision control systems?

2201


What is rapid application development model (rad)?

1343


Work flow in testing in your company?

1822


What is performance tuning? What are tools of performance testing?

1188


What is the typical situation u faced while collecting the test data?

2232


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

2164


What do you think the role of test-group manager should be? Relative to senior management?

2132