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

Explain transaction testing?

755


How to write test cases for "open file dialog box" for ms word? Thanks a lot!

3663


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

2013


What is test environment? Elaborate with example.

735


write the test cases for facility module

1307






How to write test cases on laptop???

14949


Explain the glass box testing?

751


how to write test case on gmail for TO field in compose page? only for the particular field.what will different type of user do with it like student,doctor?

4708


write a test case flipkart login page

5418


IN MY APPLICATION SOME WINDOW IS THERE IT CONSISTS OF SOME 25 LABLES IN THOSE FOR THE ALREADY SELECTED ONE IT WILL SHOW THE BACKGROUND COLOR IS YELLOW WHILE CHECKING IT SHOULD CHECK THE ALL LABLES WHICH ONE IS HAVING YELLOW COLOUR backcolor=SwfWindow("ALTAIR").SwfWindow("Load Wafer").SwfLabel(" ").GetROProperty("backcolor") SUPPOSE LIKE DS IT WILL BE THERE THEN FOR THAT SwfLabel(" ") inside this how to specify is my doubt because i have to check all the 25 labels plz explain it how to specify that

2076


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

10539


They were asking sily questions and definitions rather than practical experience related questions. More focused on Definitions.

1634


write test case for pen cap if it is not present?

2201


write the testcases for migrating data from one database to another database?

2018


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

2687