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


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


Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Test Cases Interview Questions

Write few functional & non-functional test cases for a payment gateway system

3 Answers  

Can someone help to write testcase for the scenario as early as possible.: 1. Complaint logged since one week 2. complaint info sent to supervisor with high priorit mail 3. 10 users logged into website , performance could not be degraded ( response within 5 seconds) 4. site should be user protected. 5. it should be work with IE 6 IE 7 6. complaint log should be generated more than one week

0 Answers  

please can anybody tell me, how to indentify the test cases which can be automated from a given set of test cases, say 20.

2 Answers  

how can we write test cases with help of functional spec? is it not appropriate to write by using the application?

3 Answers  

Write the 10 test cases for Telephone/Pen.

12 Answers   Infoedge,

How to write test case for this scenario. The system shall allow the user to request a search for a case using the following mandatory parameters: Last Name First Name Case creation date  range

1 Answers  

How do you review the test cases which are prepared by your team member. answer is: using traceability matrix, matching testcases with the requirements. He again asked - assume that all the test cases are matched with the requirements, then what do you do, how do you proceed in this case..

2 Answers   Mind Tree,

How to write test cases ?

5 Answers  

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.

0 Answers   Google,

how to search a Unix file system in Google search engine??? write the test cases foe that one???what will be the step

0 Answers  

Test a function that reads a file into memory, say ReadFileToMemory( FILE * pFile, BYTE * pMem, DWORD numBytes)

0 Answers   Microsoft,

Can any tell to create test data for SUM (calculation), Scenario is 0 to 9 digits are available as we see in the calculator, I want to certify that the sum of the two numbers are working fine by providing test data.

0 Answers   NIIT, Cap Gemini,