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 ?    0 Yes 0 No




Post New Answer   View All Answers


Please Help Members By Posting Answers For Below Questions

what is black box system in software development in system analysis and design?

654


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

943


How to write a test cases for the following Please it is urgent Once user clicks that link Invite Friend page opens up thru which user can do 2 functions - first is to search friends detail(name, mail id) from her address book in other sites (india times, yahoo, gmail and rediff) and second to mail the invite to the selected person/s. User can send invite to multiple person at same time. Searching friends detail in other address books will work like this: - User will input name, email id, pwd etc, select from which site she want to get friends list and then click on Import. - Users address book from other sites will be imported in one shot(first time) to iDiva database. - It will be arranged in alphabetical order(complete list) and mail ids which are already used will be in different color. - User will be able to update her address book by clicking on ""Refresh"" button on the page, which will trigger the process again, and fetch new mail ids.

960


write test cases for flipkart.

161


Scenarios to test wireless Speaker via bluetooth

1146


please tel me how to write test case for search engine to track peoples,when user enter the city,state,zipcode(ex:Kansas city,Missouri,64155)? (note country is already selected as a united states )

2392


An Excel sheet contains 2rows and 3 columns of data.I want to copy these data in to the another excell sheet. Write the possible positive and negative test cases?

1512


how to write test cases for online restaurant table booking system?

3660


If for any software product, if the customers more often us few functions, and rarely use few othere functionality. what a tester can expect more deffects can be found, in what area, where the functionality frequently used OR where rarly used?

665


Write a test case on a durability of an electric bulb and test it that it will last for next 10 months.

815


150 integration testing scenarios for gmail

1499


Give me a example that differentiate Test case Procedure,Test case Scenario,Test case Discription & test steps.

986


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.)

843


hai im finished software testing course im technicaly strong but yet now no opportunities come to me.if any opportunities please send to my mail id my mail di is sumathi11685@gmail.com

805


Describe to me what you see as a process. Not a particular process, just the basics of having a process.

4274