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

test cases for restaurant billing system????????

1 Answers   ABC,


write a test case for authentication of a login page from database

1 Answers  


Tell me number of test cases required for full statement and branch coverage: Read P Read Q IF P+Q > 100 THEN Print “Large” ENDIF If P > 50 THEN Print “P Large” ENDIF

2 Answers   Siemens,


How we apply Test case like integration testion on calculating result or for calculation GPA..... plz urgent need???:(

0 Answers  


build 1 bug is raised and it was closed by developer and build 2 is released in build 2 also same bug raised what is the satus of that bug. 1>reopen 2>open 3>new 4>defered

14 Answers   Accenture,


How to write test case for this scenario. The system shall allow for a wild card search for the first name with a minimum of one character.

0 Answers  


write the test cases for a+b=c?

9 Answers   Aloha Technology, SAP Labs,


HOW TO WRITE TEST CASES FOR MEGHA MENU DROP DOWN BOX.

0 Answers  


give an example of how to write functional test case.in this test case can we write all +ve and -ve conditions?

7 Answers  


write the testcases for a triangle ABC. given length of 3 sides of a possible triangle, check whether 3 sides do indeed form a triangle or not if they do then state whether the triangle is scalene, isoceles or equilateral. Note that the sum of any two sides of a triangle should be greater than third side. A+B>C B+C>A A+C>B. need urgently. thank u... by priya

6 Answers   Stag Computers,


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,


please can anybody tell me, how to indentify the test cases which can be automated from a given set of test cases, say 20.

2 Answers  




Categories