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

answer is a.4

1 test case to check if system can read a and c
2 to check if a<10
3 to check if c is > 100 and < 100
to check if a and c are printed

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain Single View Testing ?

1188


What knowledge I must have as a 3 yrs. manual tester??

1848


Describe Testing Decomposition?

957


How will you do beta testing?

827


How to write test cases for nevigating menus? Ex. Course -Topics -Subtopics

1930


If anyone have attended interview with deloitte for the post of senior manual test engineer. Please share the interview process and the questions asked. How to prepare for the interview. Thanks in advance

4624


Is Anyone attended the manual testing interview with capgemini in recent past. please let me know the type of questions they can ask. Thanks

3109


Hi to all, im vaibhav i joined a MNC as a tester and i got a banking (HSBC) project can any one tell me as a fresher what kind of strategy i sholud use to perform better. thanx

2114


What is deferred status in defect life cycle?

936


what is difference between win 98 and win 2000 poertating system?which is better one?

1921


what is sanity test (or) build test?

847


how mapp the defect id in quality center?

1892


You may undergone many projects. Do all the projects match up with customer’s expectations?

936


hi can anyone tell me about vision plus testing? and what about its future

21797


What is an audit report? Whom is it done by?

2178