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

Can any tell to create test data for SUM (calculation), Scenario is 0 to 9 digits are available as we see in the calculator, I want to certify that the sum of the two numbers are working fine by providing test data.

926


can any body help me with providing a a case for usability testing...

655


How to write test case for this scenario. The system shall compare the requested name with the Service Member Name field in the database

450


write a test case for telephone billing ?

2770


what is the test plan for ms-word

759


How to write test case for this scenario. The text field that reads “ enter SDU number or the city and state of the SDU” shall be removed from the contact screen 

465


If userA send a string through whatsapp but userB is not getting properly the string, Then what may be problem? Can someone write testcase of this. Both whtsapp application is same version and OS is also same android version.

348


Some test case for mambo cms (only basically: graphic, function...) Thanks for answer.

608


test cases for bus transport (TNSTC)

860


WE WANT HEALTHINSURENE PROJECT FUNCTIONAL TEST CASES

1340


What is the toughest moment you faced in your testing carrier in which everyone praised you?

811


Could you pls give me sites where i can test card? mail me to

923


how to write a test cases for Quick links like Feedback/Suggestions Advertise with us Contribute Invite a Friend FAQs Make HomePage RSS Feed Buzz Words Email Privacy Statement Terms & Conditions Copyright Disclaimer Download Forgot Password

1488


1. Buzz Words 1.1 Purpose Allow user easy access of content based on key/popular words 1.2 Scope All the tags at the portal. 1.3 User Interface - Tags are usually hyperlinks that lead to a collection of items that are associated with the tag. - Click takes you to page similar to Search Result page, should search all content and not only articles - Based on Most Viewed only 1.4 Interfacing/Sourcing Details - Need to develop an application which works on algorithm to calculate size/color of Buzz words. - In phase 1 algorithm will be pretty straight forward of calculating dimesion of Buzz words by going by ""Most Viewed/Visited"" words. Need to get exact algorithm.

1228


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.

1900