Given the following code, which is true about the minimum 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

A. 1 test for statement coverage, 3 for branch coverage

B. 1 test for statement coverage, 2 for branch coverage

C. 1 test for statement coverage, 1 for branch coverage

D. 2 tests for statement coverage, 3 for branch coverage

E. 2 tests for statement coverage, 2 for branch coverage






Answer / toshimathur

B

Is This Answer Correct ?    0 Yes 0 No

Post New Answer




More Test Cases Interview Questions

Can you please tell me test scenarios for online shopping Paypal ??

1 Answers  


Test Case for Text Editor!

0 Answers   Foxconn,


I need GUI test case for home page?

0 Answers   Wipro,


write a test case for a pen and paper regarding writing.

11 Answers   Wipro,


write testcase for sql table? this is the question asked by interviewer?

4 Answers   IBM,


explain end to end scenario's for online Money transfer in Banking Domain?

0 Answers   Flock,


You are Only tester for Onsite client team, this team is on holiday for two day from monday & SIT is started with plan end date is friday in this case if all server,application is crashed then as a tester what will be your approach

0 Answers   Tieto, Cognizant,


What is port testing ?

1 Answers  


hai........... please tell abt testcases.. how we can drived the testcases in project?

1 Answers  


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

0 Answers  


Write test cases for bulb.

9 Answers  


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<IPoint> { } public RoadNetwork : List<Road> { } public RoadNetwork Concatenate(RoadNetwork roads);

0 Answers   Infosys,




Categories