Find statement coverage and branch coverage:
1) Read P
Read Q
if P+Q>100
then print "Plarge"
endif
2. Disc=0
order_qty=0
Read order_qty
if order_qty>=20
Disc=0.05
if order_qty>=100 then
Disc=0.1
endif
endif
Answer Posted / nitin
for 1) - For stmnt. coverage we would require only 2 test
case to execute all the stmnts. in section 1.
for 2) For branch coverage we would require 3 test cases.
B'coz for every if condition we need to execute true and
false. So, false condition can be executed in a one go for
both IF condition and 2 test case would be required to
execute true for both IF condition.
| Is This Answer Correct ? | 3 Yes | 6 No |
Post New Answer View All Answers
what is your daily activities?
how to test a store procedure?
How to find that tools work well with your existing system?
How could we start writing testcases without having the FRS,BRS Docs? My Project has some docs that are related to explain the operations which will be done in the application. It is deployed in UAT server and is a maintainance project. Tell me some technipues or best way to provide the quality to application?
what is the critical defect in telecom domain?help me out from this prob its very urgent
Can any one say me how to do Performance testing step by step plz for a desktop application(offline application).all the data is stored in internal server itself can any plz help me. ts quite urgent friends.
Explain test metric and the information it provides.
Hi, this is murthysharma. I need very urgently about some terms which are used in use cases? Plz give reply to me, if any body know, It is really very very urgent. 1. what is the difference between basic flow,exception flow and alternative flow? 2.what are non-functional requirements in use cases? 3.what are exceptions, special requirements, business rules, assumptions, constraints. Kindly give me with the example. Bcoz, I am very new to this use cases. thanks in Advance. Regards, M.MurthySharma
Tell me the advantage and disadvantage of cookies?
what is the architecture of your current project?
What is function points??????
What is common interface?
what are the various techniques you will use as soon as the srs was given to you to speedup the testing?
Hi Could someone please provide Siebel Testing Interview questions for 5 years exp.
Explain the sub-genres of performance testing?