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

how to prepare unit test scripts for accrued interest calculation.

1 Answers  


test case for pen?? with actual value and expected calue

4 Answers   InfoSpace,


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

1 Answers  


Can any one send me the Sample sanity Test Cases??? Mail id:veerabhadrudu.p@gmail.com

0 Answers   TCS,


For a Login screen with Username, Password input fields and Enter, Cancel button write Test Cases for GUI, Funcitonal, Negative, Usability and Security testing.

1 Answers  


regression testing falls under white box or black box testing?

9 Answers  


who will prepare enhacement report?mail me at gavaskarreddy149@gmail.com

1 Answers   Ordain Solutions,


hai im finished software testing course im technicaly strong but yet now no opportunities come to me.if any opportunities please send to my mail id my mail di is sumathi11685@gmail.com

0 Answers  


test case for coffee machine?

16 Answers   TCS,


can u tell me how do we writetestcases for perfomance,load,And stress?

2 Answers   IBM, Wipro,


Who will take care of test plan and test case?

0 Answers  


tell testcase where it is taken and tell the title of the testcase? pls any answer the question?

1 Answers   IBM,




Categories