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

two tests are required

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you Prepare a Defect Managemnt Policy

1629


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)

1519


is it possible to do performance testing in stand alone application..how wil u do that ???????

1785


hello there, can anyone tell me what type of question does lg soft company ask in written test especially for a quant part? Thanku

1403


What are the phases involved in software testing life cycle?

683






Hi there Does anybody can respond to my Questions? Is some one there to answer my Questions posted in Software testing category.pls E-mail to sunitht27@yahoo.com

1742


define risk management system with example ?

1556


When to stop testing? (Or) how do you decide when you have tested enough?

643


What is severity and priority of bug? Give some example.

664


What are differences in testing a client server and a web application?

1509


hi this is satish can some one help me out by sending the maxium notes on client sesrver ,web server and company architechture project hirearchy and company hirearchy i will happy to recive the answers as early as possible

1723


What is the Diff between Code Walkthrough & Code Review? What is the diff between walkthrough and inspection? What is meant by GUI Testing?

1570


Write UI Test case, Integration Test case, Functional Test case & Performance Test case for the File Menu for MS-Word?

2097


What do you mean by Cause Effect Graphing? in which standard its mentioned?

1677


What is bug severity?

655