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

There is French dictionary and if you want to check it in English and there is no documentation available then how you will test it and write a test case and Test scenario on it.

3086


Explain the scalability testing?

661


Explain the exactly meaning of test case?

691


How to write test cases for the following scenario: The system shall limit the search result display to 200 records. Do we need to write test data for it. How do we create a test data for it.

1861


Write the test case for a login page?

723






write a test case for yahoo compose page?

2279


Can you list down a few characteristics of a test case?

704


How to test Webservices and how can we write test cases for that

2889


Which of the following defines the expected results of a test? Test case specification or test design specification.

1003


plz.. tell me hw to write the Use Case for Online Purchase... just tod. itself i need...

1899


What is the state testing?

719


Can someone tell me the test cases to test the password for with following scenario: 1. Password should be minimum 6 chars and maximum 8 chars. 2. Password should consist one uppercase letter 3. Password should consist of one numeric 4. Password should consist of one special character.

1667


Please guide me for Add new user test cases

1097


Could anyone please let me know what are the test cases for a rule based system? WE have a module on RBS which relates the data gathered to a set of rules and uses them to verify if the details are correct. Also we have a data acquisition module which collects the configuration details of a node entering a cluster using the CPUID. Can you please suggest test cases for these two modules, please?

2085


Explain the syntax testing?

675