Hi, Below is a question on white box testing. Kindly help
me in answering it. How many test cases are needed to
obtain 100% branch coverage. This question was asked in
ISTQB foudation level exam - Dec21 2008.
Read(A,C)
If(A<10) then Print A;
Endif
If(C>100) then Print C is greater then A
else if(C<100) then print only C
Endif else
Options -
a. 4
b. 3
c. 2
d. 1
Kindly answer with explanation so that it would be easy to
understand
Answer Posted / rama mohan parini
Require 3 Path test cases.
Test Case 1 - A is any value > 9 and C = 100 to check that
nothing is printed.
Test Case 2 - A is any value < 10 and C is > 100 to check
that Print A and
Print C is greater than A lines are printed
Test Case 3 - A is any value, and C is < 100 to check that
Print A ( only if A is < 10)
Print C is greater than A is printed.
We should use Cyclomatic complexity formula to calculate
number of paths easily
C = E - N + 2
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Can any one explain me about hybrid integration testing? and what is interface in integration testing? thanks in advance...... regards, MurthySharma.Manchella
Write down ten test cases for below scenario: Increase the day by 1 and date format should be mm/dd/yyyy Conditions are : date should not be greater then 31 and date<1 month should not be greater then 12 and month<1 year should not be greater then 10000 and year<1 Thanks in advance
Can u give me explanation about section 508 testcase and Testcase for this section. It need a details checklist for the same Manimozhi
What is the difference between a defect and a failure?
How does quality control differ from quality assurance?
can u write some high level scenarios on ms outlook express
Upps..., sorry my email id is this : preet405p@yahoo.com Thanks in advanced.
What is the Testing strategy for testing client server applications/products?
Can anybody help i put the pharma and bank project in my resume, but i dont know what to tell about them, any body tell the where can i get the information about them,what i need to tell about these applications,please help me
Define brain stromming and cause effect graphing?
Hi I am searching job please send some details abuot ERP project and real time test plan,traceability report,test case if any relate to erp project Please help me out to get a job in testing.my email address is chiku_69@yahoo.in Thank u
i need some objective type papers for my certification
How to find that tools work well with your existing system?
Enlist some bug status along with its description?
What are the modules of quality center?