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 Posted / toshimathur

A

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the ramp testing?

688


write test case for pen cap if it is not present?

2099


What is the toughest moment you faced in your testing carrier in which everyone praised you?

1810


how to test a UI and aslo we need to check a log data fil which gets populated in the db.for this two scenarios give me test cases

1941


150 integration testing scenarios for gmail

12014






"search"test cases on Linkedin website and how will you write test cases on it?

5680


How to write email id in world wide web

1429


can anyone send me a copy of a business requirement and test cases attributed to such requirent. thank u

1666


pls i want test cases for oss? whts the process of oss testing

2003


Do you know mutation testing?

692


How to write a test case for create folder in the email. create aliases for email adress in the email. thanks Its urgent

2099


What is ramp testing?

663


Could anyone please let me know what are the test cases for a rule based system? WE have a module on RBS which relates the data gathered to a set of rules and uses them to verify if the details are correct. Also we have a data acquisition module which collects the configuration details of a node entering a cluster using the CPUID. Can you please suggest test cases for these two modules, please?

2085


Scenarios to test wireless Speaker via bluetooth

4742


i am preparing for interviews in real time job what test cases we have to prepare please explain with example?

1893