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

They were asking sily questions and definitions rather than practical experience related questions. More focused on Definitions.

1525


What is Initial Configuration?

1956


Write the use cases for following 1. Comment section of Facebook 2. Instagram status Implementation

498


In any Hyderabd institute you can find these word commomly used by faculties ... Yes or no / Right or wrong so funny...

1678


how to write test case for GUI testing and tell me in brief about GUI and all related WEB based testing..if possible then pls give example of its test case...m new in testing........thannx for help in advance

3378






Explain the sanity testing?

696


How to write test case for this scenario. The system shall auto populate the Email Address on the contact screen with the Email Address of the user profile 

1664


What is the state testing?

728


test cases for bus transport (TNSTC)

2806


how to write test cases for smart meter for gas and electricty

2458


Write a test case for a car, which has been, recently launch in a market to check its durability, fuel efficiency and its optimum speed.

2098


Requirement from Market “Alice is talking to Bob. Bob thinks that Alice should talk to Chris for more information. Currently, Bob will pass on the directory number of Chris to Alice; Alice/Bob will disconnect the call and then Alice will initiate a new call to Chris. What we need need, Bob should be able to transfer the call to Chris, without Alice making another call.” Implementation done by Unified CM Development Team When a basic call is connected, a new softkey “Transfer” will be displayed on the IP Phone. User (say, Bob) can press that and dial a target (say, Chris). Bob has two options (1) wait for Chris to answer and then tell Chris about call from Alice and then press “transfer” again to complete transfer (2) press “Transfer” immediately; when Chris answers he will be connected to Alice Please come up with test cases thinking from a user perspective, let’s say from a Bank (there could be users such as receptionists, accountants, managers etc.) – in what all scenarios transfer can happen, any negative scenarios (cases where we don’t get a positive response always). If you think you need an enhancement to the feature, please go ahead and suggest that as well.

3088


Explain the glass box testing?

673


How to write the test scenarios for the following: 1. Searching train. 2. Data encryption and decryption. 3. Single signon. 4. Document printing. 5. Testing EMail. 6. Data authentication.

3039


What are the Test Cases Comes under Regression Suite?

510