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

B

Is This Answer Correct ?    0 Yes 0 No

Post New Answer




More Test Cases Interview Questions

Credit card field contains four text boxes. We can validate each textbox separately with conditions but how can we write integrated testcase for all the four?

0 Answers  


can one defect be mapped to more than one test script in manual testing

0 Answers  


Below is a user story where Dave, a dispatcher, wants to use a console system to talk to Fred, a person in the field. Create a list of test cases to verify these requirements have been properly met. User Story 3004 - Dave wishes to call Fred using a phone. Dave needs the ability to dial digits for an outbound call to Fred. The dial pad will have a display area for the digits being dialed. The dial pad will have the following functionality: Recall Dial Tone, Recall Last Number, Backspace Current Digit, and Phonebook (Contacts) Access. The dial pad must be touchable and the “Dial” button will be used to initiate the call. A prototype version of the dial pad is attached below. The dial pad will have the following configurable properties: Display Color, Display Font, Foreground Color, Location and Size.

0 Answers  


give an example of how to write functional test case.in this test case can we write all +ve and -ve conditions?

7 Answers  


how test cases can be made for a software

3 Answers  


how to write system test cases for a pen

3 Answers   IBM,


Write the integration test cases for below scenario: You have three components 1. Message 2. Call 3. Call Log Hint: Mobile phone message box

2 Answers   EXL, Cap Gemini,


plz tell how to test this: We have to change the password of password field the condition is:The password will expiry after 30 days and that should not allow last 12 similar passwords....

2 Answers   ACS,


Can test case contains more than 50 steps in single test case?

4 Answers  


what will be the test case for Lift?

19 Answers   Satyam, Mind Tree, Tops Security Ltd,


What is Defect Seeding? What is Defect Density?

1 Answers  


Give me 10 test cases on library management system

6 Answers  




Categories