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
What types of software testing are available?
What is the purpose of test strategy?
How to test a Falsh player scrollings?
what is Test management fundamental?
If client give you a project then which testing you will perform first
Hi Friends, I have completed 3 rounds of an Interview with HR discussion also and got Offer letter from Cognizant, but after in 30 min they send one more email like Offer is on Hold, and its not valid... Could you please guide me any one , Can i expect Offer again from Cognizant or Can i drop the hopes ?.
What different types of manual testing are there?
can anyone tell me the questions that can be posed in an interview for a 5 year experienced person in manual testing
what types of bugs will we find out in banking projects
1.What types of documents would you need for QA, QC, and Testing?
tell me 5 new requirements in ur project? plz urgent
What is virtual creation tool?
what is mean by impact analysis ,how we used to select regression TC using this?
What are the various techniques in white box testing?
In testing environment have you ever found any areas for improvement while you at work. (Please give some real life example).