What is the smallest number of test cases required to Provide 100% branch coverage?

If(x>y) x=x+1;

else y=y+1;

while(x>y)

{

y=x*y; x=x+1;

}

A. 1

B. 2

C. 3

D. 4

Answer Posted / toshimathur

B

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the test cases for mouse?

860


How to write test case for this scenario. The system shall allow for a wild card search for the first name with a minimum of one character.

1450


If I have to write the test cases for any report & there is date box.then may I have to write only select date or have to write all steps required for selecting date

2075


Write a test case on online shopping website? (please tell me the format how to write in MS excel,if u have any sample than attach it.)

3913


Explain the soak testing?

692






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

1905


Explain the load testing?

643


please give me different test scenario for uploading whatsapp status from gallery and camera

5481


how to make test case for anolog voice logger?

2038


This was asked to me recently in Microsoft interview How would you do DOS copy command testing

1923


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


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

5175


Explain the system testing?

696


write test cases on file open dialog box in notepad

1201


how to write a test cases for courier offices?

3368