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



What is the smallest number of test cases required to Provide 100% branch coverage? If(x>y) x=..

Answer / toshimathur

B

Is This Answer Correct ?    6 Yes 1 No

Post New Answer

More Test Cases Interview Questions

what will be the test case for Lift?

22 Answers   Mind Tree, Satyam, Tops Security Ltd,


Give examples of boundary value and equivalence partitioning test cases.

10 Answers   IBM, Mind Tree,


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.

0 Answers   Google,


Write the Load test cases on a water bottle.

5 Answers   Cognizant, IBM, Logic, Microsoft, NIC,


Write a test case for a chair to check whether it will last for next 10 years and check the quality of the chair and it’s durability.

4 Answers  






How to write test case for this scenario. The First Name data entry field shall be removed from the existing Contact Information screen

0 Answers  


Please can anybody tell me some good ideas to write test case for fan and test case for chair?

6 Answers   TCS,


How many test cases u will write for Adhoc testing? How many test cases u will write for Alpha testing? How many test cases u will write for Beta testing? How many test cases u will write for Release candidate testing? How many test cases u will write for Product release testing? How many test cases u will write for Functional testing? How many test cases u will write for Non-Functional testing? How many test cases u will write for Integration testing? How many test cases u will write for System testing? How many test cases u will write for Component testing? How many test cases u will write for Release testing? How many test cases u will write for Load testing? How many test cases u will write for Stress testing? How many test cases u will write for Black box testing? How many test cases u will write for White Box testing? How many test cases u will write for Performance testing? How many test cases u will write for Automation testing? How many test cases u will write for Compatibility testing? How many test cases u will write for Regression testing? How many test cases u will write for Endurance testing? How many test cases u will write for System Integration testing? How many test cases u will write for Boundary value testing? How many test cases u will write for Usability testing? How many test cases u will write for Walk through testing? How many test cases u will write for Sanity testing? How many test cases u will write for Smoke testing? How many test cases u will write for Installation testing? How many test cases u will write for Soak testing? How many test cases u will write for Volume testing? How many test cases u will write for Security testing? Write test cases for Multi path testing? How many test cases u will write for Multi path testing? Write test cases for Dynamic Capacity Expansion (DCE)? Write test cases for Dynamic Volume Expansion (DVE)? Write test cases for Dynamic Raid Expansion (DRM)? Write test cases for Drive failure? Write test cases for Controller Failover? Write test cases for Cable pull? Write test cases for RAID Controller?

0 Answers   Wipro,


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

0 Answers  


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

0 Answers   Rakshak, Via.com,


There is a game in that there are 20 levels an ordinary person can play it up to 12th level.So if you are a tester and if you have to test that game up to 20th level then how u can test that game.

0 Answers  


If I wrote test cases for Login Window with test case Name Login window & test case id L_01.Now if Name of Login window get changed in the next version.then May I have to change the Test case name & Test case id OR HAVE TO block the previous test case and write the new one

0 Answers  


Categories