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



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

Answer / toshimathur

A

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Test Cases Interview Questions

Give me 10 test cases on library management system

8 Answers  


int a, int b, int c= (a+b); Write the test cases for c.

0 Answers  


I would like to have a Test Case on Yahoomail with GUI and Positive and Negative test cases pls its an Argent.

7 Answers   Cap Gemini, CTS,


What is the Difference between Testing Types and Testing Techniques

4 Answers   ISTQB,


If there are two document files, from one doc. file we want some text copy & peste into next doc. file. So which are the negative test cases for such scinario.

1 Answers   ABC,


Given the following code, which is true about the minimum number of test cases required for full statement and branch coverage: Read P Read Q IF P+Q > 100 THEN Print “Large” ENDIF If P > 50 THEN Print “P Large” ENDIF how to find statement and branch coverage? Explain in brief?

0 Answers   ISTQB,


What is the role of QA in a company that produces software?

5 Answers  


While doing export to Quality Center it always shows Excel file does not respond???? Please suggest as why it is happening??

1 Answers   TCS,


Credit card field contains four text boxes. We can validate each textbox separately with conditions but how can we write integrated testcase for all the four?

1 Answers  


i want to write the test cases for sorting the records in a table according to date wise.this is the functionality ,that is the latest record should come on the top can any one tell me the test cases for this thanks in advance:)

1 Answers   Cognizant,


ATM application ( scenarios ): Analysis and testcases

1 Answers   TCS,


Why is it that the boundary value analysis provides good test cases?

0 Answers  


Categories