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

Hai, Could anybody please let me know, how to calculate the number of test cases required to test a program. Please provide me the answer for the following question: “What type of ticket do you require, single or return?”IF the customer wants ‘return’Ask: “What rate, Standard or Cheap-day?”IF the customer replies ‘Cheap-day’Say: “That will be $11:20”ELSESay: “That will be $19:50”ENDIFELSESay: “That will be $9:75”ENDIFNow decide the minimum number of tests that are needed to ensure that allthe questions have been asked, all combinations have occurred and allreplies given. a) 3 b) 4 c) 5 d) 6

1 Answers  


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

0 Answers   Microsoft,


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

0 Answers  


Which testing is important, positive testing or negative testing. Test cases for postive and negative testing for a given functionality.

2 Answers  


could somebody plz tell me the test cases on online credit card payment?

4 Answers  






Difference between Automation testing and manual testing.

18 Answers   Mphasis, SAP Labs,


Can anybody help me in writing test cases for a scenario? need help at the earliest. will send you the requirement doc to your email id. thanks raj

0 Answers  


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?

1 Answers   ISTQB,


How to write test case for the library system?

0 Answers  


how to execute test cases manually

1 Answers  


explain end to end scenario's for online Money transfer in Banking Domain?

0 Answers   Flock,


Explain the logic testing?

0 Answers  


Categories