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

end if

if (Condition 2)

then statement 3

end if

A. 2 Test Cases

B. 3 Test Cases

C. 4 Test Cases

D. Not achievable






Answer / toshimathur

A

Is This Answer Correct ?    0 Yes 0 No

Post New Answer




More Test Cases Interview Questions

Test cases on uplaoding files

12 Answers   HP, GE,


How does the size of the OPCODE field limit the number of operations? Give an example to support your explanation?

1 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  


Define Testcase.

13 Answers   3i Infotech,


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  


what are the different Test case Formats posted by aperson the answer is IEEE or IEE_894 wht is this actuly

4 Answers  


how to execute test cases manually

1 Answers  


test cases for bus transport (TNSTC)

0 Answers  


What is p0,p1,p2,p3 in software tesing

5 Answers  


There is a web portal that has been tested and working properly. Now a new module called as the "online shopping module" had been added. Ther are two search pages , a normal search and an advanced search page. You are responsible for only these two modules for testing Questions 1) Write the scope for testing 2)High level test scenarios 3)Test case for one high level test scenario 4) Assumptions while writing the test case 5) Questions that u might need to ask as a QA to test the application NOTE- the requiremnts wont be given. One has to assume the requirements Please tell me how to test a search page and also please help me answer the above questions

2 Answers   Zycus Infotech, Infosys,


Create Test Cases based on Software Testing Principles Write the Test Cases to validate Command Line utility - ‘MAX’. The utility displays the maximum of the 2 specified Integers. Please note down any assumptions that you make. e.g. MAX 2 3

1 Answers   Satyam, SAP Labs,


Write the testcase for pen

10 Answers   Minecode,




Categories