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

can anyone help me in getting unix on manual testing i.e can u forward material & web sites to my mail id (suresh_57599@yahoo.com) to understand how the work flow working on manual testing on unix and the contents.plzzzzzzzz help me its urgent.

1422


During alpha testing why customer people are invited?

719


Hi , Please send me the interview questions which were asked in manual testing mainly the test cases asked to write in interview.

1501


i want to for technical interview question paper along with in tesrviwe Phases i need

1492


Hi could some one please send me the testplan testcases(for 2Modules) and testscripts for mercry fliht aplication or gmail. please write those on templates and send me.In testplan plase write Testobjective, test scope, est approach, exlusions assumptios.

1567






What is difference between Build, Version and Release

1683


Tell me the advantage and disadvantage of cookies?

792


What is reverse engineering?

743


Can anybody give me some tips on how to face telephonic interview and Write some expected telephonic questions as a 2+yr exp. in testing. Try to give Ques. that u already hv faced in telephone. Plz Help me out friends.

1447


What is the Difference between Network testing and Web Testing?

1726


write test condition for testing SMS service of a mobile phone maximun length is 100 character while sending and 80 character for receiving write test scenarios do not write test cases

3047


What are the challenges you faced in your project (Testing) and in your company?

2599


what are questions asked in TCS for database tester (sqlserver)?ay idea

2472


What does a manual tester need to become proficient with db testing?

695


Have u ever done testing related to a database,give examples to support u r answer.

1697