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?



14. How many test cases are necessary to cover all the possible sequences of statements (paths) for..

Answer / suchita mulkalwar

2 test cases are required. for this

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Test Cases Interview Questions

If I give u refill which cost is 5000 & I ll give u refill then how u find that refill cost is right or wrong? & that refill is new in market.

0 Answers   CybAge,


write a testcase for tea cup?

6 Answers  


How to test Webservices and how can we write test cases for that

0 Answers  


Hi, I am doing project related to Online order Booking. In this project different products will be there. The user can order the product to different location by giving different shipping Addresses. By selection of Address shipping price will be calculate. My Question: Now the shipping related part they are integrating with UPS(www.ups.com) Depending on the From Zip code, To Zip cobe and Quantity weight the shipping price will be calculated. I want test scenarios to test the shipping part. I think ASAP u will help me. My mail id srinivasukona@gmail.com

1 Answers  


Write a test case for a car, which has been, recently launch in a market to check its durability, fuel efficiency and its optimum speed.

0 Answers  






How to perform a stress test on an ATM machine? (Note ATM is a Bank ATM say Citibank, IICICI etc)

7 Answers  


what are the inputs required for writing test cases

2 Answers   Satyam,


How to write test cases for Web related sites(ex: shopping carts sites)

1 Answers  


What is the role of QA in a development project?

6 Answers  


What is the syntax testing?

0 Answers  


Test case for flight reservation system

1 Answers  


Can any one please help me with this? I have application, for this no KT session or FS are provided, So now i have taken bottom-top approach, by writing the system testcase using the application. But my TL told me to write regression testcase. What i understood about regression testcase is that-For one scenrio or testcase multiple data, So testing the same scanario with different multiple data. Is this right or Wrong?

2 Answers   ABC,


Categories