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

Write a test case scenario for Web-based address book?

0 Answers  


Explain transaction testing?

0 Answers  


Apart from the normal functional test cases written, list out some out of the box test scenarios to test the 'Replace' dialog box in a Notepad

2 Answers  


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

0 Answers  


How to create Test Data? What are the Fields in Test Data. Please any one specify the format of Test Data?

3 Answers  






Write a test case for a chair to check whether it will last for next 10 years and check the quality of the chair and it’s durability.

4 Answers  


Can any body please tell me how to test Anti-virus software? I have been asked this question many times in interview.They asked this question for a security tester,performance tester & functional tester perception. Hope u guys will reply me. Any suggestions welcome.........

2 Answers  


is it necessary to write test cases in tabular form or will point wise will do.

3 Answers   Google, Zycus Infotech,


Write test cases for orkut?

2 Answers  


i m a fresher working in healthcare industry. here we hve no tool for testing. how i ll do manual testing?plz suggest anyone me urgently... i knw to write test case bt i dont knw where to write n how to execute it manually

2 Answers   Cognizant,


Explain which test cases are written first black boxes or white boxes?

0 Answers  


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

0 Answers   Microsoft,


Categories