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
How to write test case for this scenario. The system shall auto populate the Email Address on the contact screen with the Email Address of the user profile
User registration form so many details will be there to enter like Username,Phone No,Email id ect.how do we write test cases for that? in one textbox i have to write all the test cases and go to next textbox
Who will take care of test plan and test case?
Explain the gray box testing?
What is test environment? Elaborate with example.
If userA send a string through whatsapp but userB is not getting properly the string, Then what may be problem? Can someone write testcase of this. Both whtsapp application is same version and OS is also same android version.
What are the test cases for mouse?
can anybody help me how to write a test case for a program eg: c or C++ ,and also how to check their outputs
Can any tell to create test data for SUM (calculation), Scenario is 0 to 9 digits are available as we see in the calculator, I want to certify that the sum of the two numbers are working fine by providing test data.
Pls tell me test cases for pepper grinder
If for any software product, if the customers more often us few functions, and rarely use few othere functionality. what a tester can expect more deffects can be found, in what area, where the functionality frequently used OR where rarly used?
How to write email id in world wide web
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.
Credit card field contains four text boxes. We can validate each textbox separately with conditions but how can we write integrated testcase for all the four?
Write the use cases for following 1. Comment section of Facebook 2. Instagram status Implementation