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
What are semi-random test cases?
If there are 3 modules what would be test for that three modules but that 3 modules are not developed or what are the test case for that 3 modules
Write the test case for a login page?
Do you know mutation testing?
Please guide me for Add new user test cases
plz.. tell me hw to write the Use Case for Online Purchase... just tod. itself i need...
In any Hyderabd institute you can find these word commomly used by faculties ... Yes or no / Right or wrong so funny...
What is Initial Configuration?
can anyone please help me in writing Test cases for HRMS,ERP and for CRM Apllications...I am joined as a trainee.so i have to write test cases for these applications..Soo can anyone pls help me....mail id: bapuji.karyampudi@gmail.com....Please reply me guys.
how to write test case on gmail for TO field in compose page? only for the particular field.what will different type of user do with it like student,doctor?
If I have to write the test cases for any report & there is date box.then may I have to write only select date or have to write all steps required for selecting date
Explain the ad hoc testing?
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.
how to write test cases for smart meter for gas and electricty
Can any1 tell me how to do and Integration test design and test cases for Order Inventory system for use cases. ALso how is that going to differ from System Testing. The system is similar to amazon.com online ordering system and you can place order by calling customer call center.