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

Do you write test plan and test case?

1901


What are semi-random test cases?

846


Explain the integration testing?

686


write a test cases for WLAN

509


What is the difference between test scenarios, test cases, and test script?

684






write a test case flipkart login page

5226


Explain the monkey testing?

658


Explain which test cases are written first black boxes or white boxes?

657


What is the state testing?

713


Explain the system testing?

677


I want 100 test scenario for gmail

3916


Can any1 tell me how to do and Integration test design and test cases for Order Inventory system for use cases. ALso how is that going to differ from System Testing. The system is similar to amazon.com online ordering system and you can place order by calling customer call center.

1917


write test case for pen cap if it is not present?

2090


They were asking sily questions and definitions rather than practical experience related questions. More focused on Definitions.

1505


how to write test case on gmail for TO field in compose page? only for the particular field.what will different type of user do with it like student,doctor?

4595