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 Posted / toshimathur

B

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

WE WANT HEALTHINSURENE PROJECT FUNCTIONAL TEST CASES

2334


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

1924


Give me a example that differentiate Test case Procedure,Test case Scenario,Test case Discription & test steps.

2167


What are all the companies are doing manual testing till now ?

1504


Sample test cases for data conversion(Utility billing system)

6833






What are the test cases for mouse?

830


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.

1425


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

1921


What is the domain testing?

643


write a test case flipkart login page

5185


Explain the state testing?

613


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

1645


Explain the logic testing?

645


Explain the gray box testing?

698


Define some of the attributes of a test case?

666