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

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

385


pls i want test cases for oss? whts the process of oss testing

828


How does the size of the OPCODE field limit the number of operations? Give an example to support your explanation?

910


how to test a UI and aslo we need to check a log data fil which gets populated in the db.for this two scenarios give me test cases

806


Roads concatenation Problem Consider we have some GIS (Geo Information System) operating over some road network. Each road represented as array of two-dimensional geographical points. Road network is a set of roads. System has function called Concatenate(). This function takes raw road network and should return optimized road network. Optimization lies in concatenating roads with matching start or end points, i.e. if road AB end point matches road BC start point, then optimized network should contain concatenated road AC. Optimized network shouldn’t contain two roads which can be concatenated. Your task is to suggest set of test cases for Concatenate() function in order to make sure it works correctly. public interface IPoint { double Lat { get; } double Lon { get; } } public Road : List { } public RoadNetwork : List { } public RoadNetwork Concatenate(RoadNetwork roads);

778


1 Crystal Ball 1.1 Purpose This is a simple tool, for entertainment purposes only. 1.2 Scope Only for registered user. 1.3 User Interface Single page with graphic of crystal ball, and text box for typing question. User has to type her question in text box outside ball. Reports: - On ‘submit’, the system needs to access any one of the pre-stored responses at random and display in a graphical, visually appealing manner in the crystal ball. - Audio / graphical changes need to be built in, for added user experience enhancement, like music, sound effects, visual changes. Need to get details.

626


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

883


Test a file replication service that copies files from one net location to another

963


test cases for friend finder system using gps?

109


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

833


How to write email id in world wide web

176


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.

368


How to write test case for this scenario. The system shall auto populate the Email Address on the contact screen with the Email Address of the user profile 

467


what is the technology used in financial applications?

1662


I want 100 test scenario for gmail

828