For the following piece of code, how many test cases are needed to get 100% statement coverage?

Procedure X

Read (Color) // Input color from user

IF (Color == “Red”) THEN

Call Roses(Color)

ELSEIF (Color == “Blue”) THEN

Call Violets(Color)

ELSE

PRINT “User is no Shakespeare”

SaveToDatabase(Color)

End Procedure X

A. 5

B. 3

C. 1

D. 2






Answer / toshimathur

B

Is This Answer Correct ?    0 Yes 0 No

Post New Answer




More Test Cases Interview Questions

plz explain vss?

7 Answers   MBT,


what are the sanity test cases for a waterBottel?

6 Answers  


what would be the negative test case for serach that break the search .

3 Answers  


Write all test cases for any credit card.

13 Answers   SIT,


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

4 Answers   InfoSpace,


Generate functional and negative testcases for MS Paint brush

1 Answers   Accenture, GE, Netian, Tangent Software,


i'm confused to wite a Test Scenarios. can any one help me how to start?

3 Answers   IBM,


test cases for traffic signals in a four raod junction.

5 Answers   iGate,


write case for petrol pump?

9 Answers   Accenture, Satyam, AppLabs, EPPCO,


how many test cases u write in day while testing yr application.and wat z ur role after u finished testing application plz do reply

9 Answers  


There is a game in that there are 20 levels an ordinary person can play it up to 12th level.So if you are a tester and if you have to test that game up to 20th level then how u can test that game.

0 Answers  


What is DOMAIN TESTING

1 Answers  




Categories