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...

Tell me 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

Answer Posted / santosh kumar singh

take p=70
and q=40
with this the full statement coverage

for the else part for branching
2 test cases for branches coverage.
take p=40
and q is same as above
with this the else part of both the block will be covered.

Santosh kumar Singh.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Positive and Negative test cases for the speedometer?(minimum 5 each)

2951


Roads concatenation Problem Consider we have some GIS (Geo Information System) operating over some road network. Each road represented as array of two-dimensional geographical points. Road network is a set of roads. System has function called Concatenate(). This function takes raw road network and should return optimized road network. Optimization lies in concatenating roads with matching start or end points, i.e. if road AB end point matches road BC start point, then optimized network should contain concatenated road AC. Optimized network shouldn’t contain two roads which can be concatenated. Your task is to suggest set of test cases for Concatenate() function in order to make sure it works correctly. public interface IPoint { double Lat { get; } double Lon { get; } } public Road : List { } public RoadNetwork : List { } public RoadNetwork Concatenate(RoadNetwork roads);

2528


Explain the format of a requirement traceability

1158


what is the test plan for ms-word

2557


Could you pls give me sites where i can test card? mail me to

2802


Define some of the attributes of a test case?

1213


What are all the companies are doing manual testing till now ?

2085


How to write test case for this scenario. The system shall allow for a wild card search for the first name with a minimum of one character.

2012


write test case for button of google page?"i am feeling lucky" if button is not appear on page?

3055


How to write test cases for "open file dialog box" for ms word? Thanks a lot!

4181


Write the use cases for following 1. Comment section of Facebook 2. Instagram status Implementation

989


how to test stand alone programs?

2739


how to test a UI and aslo we need to check a log data fil which gets populated in the db.for this two scenarios give me test cases

2614


A wholesaler sells printer cartridges. The minimum order quantity is 5. There is a 20% discount for orders of 100 or more printer cartridges. You have been asked to prepare test cases using various values for the number of printer cartridges ordered. Which of the following groups contain three test inputs that would be generated using boundary value analysis?

2160


An Excel sheet contains 2rows and 3 columns of data.I want to copy these data in to the another excell sheet. Write the possible positive and negative test cases?

3074