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 any one give the format of writing test cases in excel sheet.

15 Answers   PCS,


how to test stand alone programs?

0 Answers   Accenture, Google,


For how many days (or) weeks you will test a product or software?

1 Answers  


Write a test scenario for a project which is developed in a VB then after wards it is converted in Java and there is no documentation available.

2 Answers  


How to write test case for this scenario. The Contact Information screen shall be displayed to the user during Case Create (Local Only),

1 Answers  


what are the sanity test cases for a waterBottel?

6 Answers  


Give me real life some test cases

1 Answers  


What is usability testing? What are the usability test cases for 'Save As' option in Notepad?

4 Answers   Infosys,


Below is a user story where Dave, a dispatcher, wants to use a console system to talk to Fred, a person in the field. Create a list of test cases to verify these requirements have been properly met. User Story 3004 - Dave wishes to call Fred using a phone. Dave needs the ability to dial digits for an outbound call to Fred. The dial pad will have a display area for the digits being dialed. The dial pad will have the following functionality: Recall Dial Tone, Recall Last Number, Backspace Current Digit, and Phonebook (Contacts) Access. The dial pad must be touchable and the “Dial” button will be used to initiate the call. A prototype version of the dial pad is attached below. The dial pad will have the following configurable properties: Display Color, Display Font, Foreground Color, Location and Size.

0 Answers  


What is the role of QA in a development project?

6 Answers  


please tel me how to write test case for search engine to track peoples,when user enter the city,state,zipcode(ex:Kansas city,Missouri,64155)? (note country is already selected as a united states )

0 Answers   IBM,


can anyone please send me the sample testcases on how to write it into the testtemplates

3 Answers  




Categories