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

How to write test cases for the following scenario: The system shall limit the search result display to 200 records. Do we need to write test data for it. How do we create a test data for it.

1971


how to write test case on gmail for TO field in compose page? only for the particular field.what will different type of user do with it like student,doctor?

4708


Explain the static testing?

819


IN MY APPLICATION SOME WINDOW IS THERE IT CONSISTS OF SOME 25 LABLES IN THOSE FOR THE ALREADY SELECTED ONE IT WILL SHOW THE BACKGROUND COLOR IS YELLOW WHILE CHECKING IT SHOULD CHECK THE ALL LABLES WHICH ONE IS HAVING YELLOW COLOUR backcolor=SwfWindow("ALTAIR").SwfWindow("Load Wafer").SwfLabel(" ").GetROProperty("backcolor") SUPPOSE LIKE DS IT WILL BE THERE THEN FOR THAT SwfLabel(" ") inside this how to specify is my doubt because i have to check all the 25 labels plz explain it how to specify that

2076


Can you list down a few characteristics of a test case?

803






how to make test case for anolog voice logger?

2131


Explain the state testing?

734


what is the test plan for ms-word

2024


how to prepare a test case for online restaurant table reservation system. plz give an answer ASAP, email at suja_rvndrn@yahoo.co.in

5281


test cases for bus transport (TNSTC)

2932


Do you write test plan and test case?

2026


How to test a stored procedure?

739


What is ramp testing?

754


What is the syntax testing?

793


What is business validation test case?

801