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
send the senario template
What is the difference between IE, Opera & Mozilla Firefox in web Testing and which brower will think that is much better?
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?
Explain the advantages of automation over manual testing?
Hi, what do you mean by internal auditing? what are the things they do in internal auditing?what they review? THNX in Advance
What are differences between Testing in Uncontrolled Environment and Abnormal Environment?
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?
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)
How do you perform configuration management with typical revision control systems?
What is rapid application development model (rad)?
Work flow in testing in your company?
What is performance tuning? What are tools of performance testing?
What is the typical situation u faced while collecting the test data?
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
What do you think the role of test-group manager should be? Relative to senior management?