14. How many test cases are necessary to cover all the possible sequences of
statements (paths) for the following program fragment? Assume that the two
conditions are independent of each other : -
…………
if (Condition 1)
then statement 1
else statement 2
fi
if (Condition 2)
www.istqb.guru
then statement 3

a. 2 Test Cases
b. 3 Test Cases
c. 4 Test Cases
d. Not achievable

Please explain this how to solve?

Answer Posted / suchita mulkalwar

2 test cases are required. for this

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is black box system in software development in system analysis and design?

1666


Please can any one tel how to write the test cases for these Requirements:- 1.The applications sends the periodic data 2.The applications sends the alarm data 3.The Application stores the Periodic data and alarm data if it is unable to send 4.the application having the configure through GPRS or SMS

1882


can any body help me with providing a a case for usability testing...

1685


can anybody help me how to write a test case for a program eg: c or C++ ,and also how to check their outputs

2100


If userA send a string through whatsapp but userB is not getting properly the string, Then what may be problem? Can someone write testcase of this. Both whtsapp application is same version and OS is also same android version.

1576






Explain the glass box testing?

674


how many test cases do u need to ship a product?

1187


How to write test case for this scenario. The system shall auto populate the Email Address on the contact screen with the Email Address of the user profileĀ 

1664


How can we write a good test case?

714


Explain the syntax testing?

692


In manual testing, I have query regarding data conversion testing. I am working on xml document. How do we write test cases for below input as well as for output Input: 1. software Testing Output: 1.software testing

1386


For how many days (or) weeks you will test a product or software?

1575


i am preparing for interviews in real time job what test cases we have to prepare please explain with example?

1908


Positive and Negative test cases for the speedometer?(minimum 5 each)

2380


I need GUI test case for home page?

3228