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



Given the following code, which is true about the minimum number of test cases required for full sta..

Answer / toshimathur

B

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Test Cases Interview Questions

If for any software product, if the customers more often us few functions, and rarely use few othere functionality. what a tester can expect more deffects can be found, in what area, where the functionality frequently used OR where rarly used?

0 Answers  


what are the possible test cases for sending an sms from mobile

2 Answers  


Explain how to develop a test plan and a test case.

0 Answers  


How to write testcases for username creation?Given requirements are min 6characters,atleast one alphabet,alpha,alphanumric

2 Answers  


Test cases on uplaoding files

12 Answers   GE, HP,






to write test cases for fuel guage?

1 Answers  


how to write the test case for time and date like TIME : 09:34:32AM DATE : 12 MAY 1987

8 Answers   AmSol,


write a test case for authentication of a login page from database

1 Answers  


What is the differance between Bug and Defect.

17 Answers   Cap Gemini, CarrizalSoft Technologies,


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   Cognizant, Tieto,


Have any idea how to prepare test cases for medical claim, Online mobile recharge.

1 Answers  


what is difference between repeatable and reusable test case?and what is self cleaning test cases?

3 Answers  


Categories