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

During alpha testing why customer people are invited?

716


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

664


What are the different available models of sdlc?

669


How we allocate the priority(Blocker, Critical, etc.,) in Testing?

1298


Testcases for msword( microsoct office word??

1664






What is test management?

1430


what is the diff. bw separate database testers and manual testers with sql knowledge guys... iam confusing so much ,,in cmpny database testers are not working on manual..? both positions are same are not? explian clesly with example? thank u

1721


what the purpose of requirement phase

12431


What are the principles of software testing?

669


IF ASCII_CODE_OF_ENTERED_CHAR is less than 44 THEN reject it ELSE IF ASCII_CODE_OF_ENTERED_CHAR is greater than 56 THEN reject it ELSE it's a digit, so accept it Which one of the following sets of ASCII codes do you use to test the sample code above WITHOUT redundant coverage?

9080


What are the advantages of automation over manual testing?

707


Why Equivalence Partitioning is called equivalence or what is the significance of equivalence term in ECP?

1630


Can you explian $ pillar of Agile

827


1.what is the approach while writing test cases in your project. 2.tell some intresting scenareo in your project

1816


Hi friends I am kranti completed my IT diploma in 2005 & after that complete my software testing course. Now I am working in small software form as software tester. I have 2 + year experience in manual testing. Now I wan to change company. Plz told me is there any effect that I can not have any degree although I have 2 + experience ?

1535