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

Write 10 test cases for the condition P=R/I where R and I are integer and P is floating point.

1 Answers  


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

0 Answers   Accenture, HCL,


Imagine that hotmail is the application taht ur going 2 test write 10 critical test case to test it ?

2 Answers  


what is parametrization ? How do you parametrize in qtp ?

1 Answers   CTS,


can any one give the format of writing test cases in excel sheet.

15 Answers   PCS,


How many test cases u will write for Adhoc testing?

4 Answers  


can someone tell me the test cases for following scenario of password: 1. Password should be minimum 6 chars and maximum 8 chars. 2. Password should consists of 1 uppercase letter. 3. Password should consists of 1 numeric. 4. Password should consists of 1 special character.

2 Answers  


how we canwrite a test case on computer?

5 Answers   IBM, Satyam,


wat is mutation testing ?

2 Answers  


write a test case on web login and bank application and client server

60 Answers   Adobe, CTS, TCS, Semantic Space, MBT, Reliance, Ciber, Login, Tech Mahindra,


How to write test cases ?

5 Answers  


how test cases can be made for a software

3 Answers  




Categories