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
Positive and Negative test cases for the speedometer?(minimum 5 each)
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
Explain the format of a requirement traceability
what is the test plan for ms-word
Could you pls give me sites where i can test card? mail me to
Define some of the attributes of a test case?
What are all the companies are doing manual testing till now ?
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.
write test case for button of google page?"i am feeling lucky" if button is not appear on page?
How to write test cases for "open file dialog box" for ms word? Thanks a lot!
Write the use cases for following 1. Comment section of Facebook 2. Instagram status Implementation
how to test stand alone programs?
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
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?
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?