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 kind of testing to be done in client server application and web application? Explain
Can anyone please answer the below question on Manual Testing: Tell me about atleast 5 bugs you come across in your last testing?
difference between change management and configuration management
iam new testing, i want improve writing test cases and bug defect etc? any on give suggestion pls?
How to integrate Bugzilla with QTP?
List out test deliverables?
how many modules in ur bank project? what functionalities r there?how did u check? could u plz expalin ur banking project?
Hi, Please can one tell me how to test the usability testing, which method has to be used, how to write the report? Thanks Deepa
What is Independent Testing?
I am DD. I am working as a Tester in e-learning company? IS there scope for content testing? or i have to change to software testing. pls guide me...
how is market for testing in banglore,chennai,pune,delhi?
hai friends i did my bcom (distance with out inter)and iam pursuing mca(distance alagappa university)iam learning testing cource in ameerpet can i elgibel for testing jobs pls guide me … …and send details to rangavijetha@gmail.com..thanks
What will be the QA roles and responsibilities in Health care stream like BCBS,can someone please explain me any example project regarding health care services in web-based application?
how can we give (ASSIGN) bug privitorirs and seviroty to the bug explain with exanple
How to derive test data from the design documents?