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

In any Hyderabd institute you can find these word commomly used by faculties ... Yes or no / Right or wrong so funny...

0 Answers  


You have to give me test cases for sending a mail through outlook express.

3 Answers   Mind Tree,


are the test cases stored in database nowadays? pls tell me... then give clear details about test case preparation and test case execution

1 Answers   ME,


What are the test cases for mouse?

0 Answers  


This part of a program is given: WHILE (condition A) Do B END WHILE How many decisions should be tested in this code in order to achieve 100% decision coverage? A. 2 B. Indefinite C. 1 D. 4

1 Answers   ISTQB,






How to write test case for this scenario. The First Name data entry field shall be removed from the existing Contact Information screen

0 Answers  


what is run time object

4 Answers   Infinite Computer Solutions,


Write the 3 TestCases to prove tht it is a softdrinkbottle or not.

9 Answers   Minecode,


How about do we go as far as writing test cases is considered?

1 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,


Please tell m all posiible tst cass for this--> A password of password field will expire in 45 days.It should send 1st reminder message to user whn 10 days are left and 2nd reminder message when 5 days are left and 3rd reminder mssage when 2 days are left.write all positive and negativ test cass for this.

3 Answers  


Redbus- possible scenarios start the testcases accordingly. Please share me templates

1 Answers  


Categories