Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



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

Answer / toshimathur

B

Is This Answer Correct ?    6 Yes 1 No

Post New Answer

More Test Cases Interview Questions

how to write a test cases for Quick links like Feedback/Suggestions Advertise with us Contribute Invite a Friend FAQs Make HomePage RSS Feed Buzz Words Email Privacy Statement Terms & Conditions Copyright Disclaimer Download Forgot Password

0 Answers   Cap Gemini,


1. Buzz Words 1.1 Purpose Allow user easy access of content based on key/popular words 1.2 Scope All the tags at the portal. 1.3 User Interface - Tags are usually hyperlinks that lead to a collection of items that are associated with the tag. - Click takes you to page similar to Search Result page, should search all content and not only articles - Based on Most Viewed only 1.4 Interfacing/Sourcing Details - Need to develop an application which works on algorithm to calculate size/color of Buzz words. - In phase 1 algorithm will be pretty straight forward of calculating dimesion of Buzz words by going by ""Most Viewed/Visited"" words. Need to get exact algorithm.

0 Answers  


Please Tell me the Real Process of a Company. My company is very small & Developer explains me the feature and I prepare the test cases according to he explained .No one is there to review what I have written in the test cases.Test cases are ok but still I have the knowlege of real testing documents i.e which documents I have to prepare What is the flow starting from requirement gathering.Please tell me ,Thanks in advance .It will really helpful to me

1 Answers  


Write Test cases for the below scenario? scenario 1: Replace the current CSS software with TML software. Scenario 2: Provide the same reports for business as currently provided by CSS software. Not: CSS and TML are customized software.

0 Answers   Microsoft,


Who will take care of test plan and test case?

0 Answers  


if account balance less than 5000 for a month ,account should become in active. if bal greater than 5000 account should b active. Write test cases for the above scenario

17 Answers   Mind Tree,


hai we need to get some data from a logfiles and populate into database .to check this we need to write test cases .how to write test case for this scenario tell me as functional and stress testing differ

0 Answers   Crompton Greaves,


Write a test cases on a facebook

10 Answers   Accenture, CTS, General Electric, Intel, Inventures, Maveric, TCS,


Explain the concept of semi-random test cases?

0 Answers  


Can someone please explain me the life cycle of DAtabase testing,iam pretty good at SQL but i dont know anything about how to start the testing(backend especially),how and where to write test cases for backend testing?how to take snapshots?how to report the bugs....as simple i know SQL and i know working on quality center but how to work on both together?Please help me!!!

1 Answers  


write test cases on file open dialog box in notepad

0 Answers  


what are those parameters or matrixes for tesing a software user interface?

2 Answers  


Categories