adspace
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
Did you ever worked with B.A's and when?
What is the difference between three tier and two tier application?
Can automation testing replace manual testing?
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
Hello, I want to know how to write a regression test plan? Can someone please send me the format/template? Thanks in advance
Can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks
According to RBI rule how much money can be transferred through online banking at one time...?
What kind of testing to be done in client server application and web application? Explain
can anybody send the project you have tested with the clear descriptions,and recent bugs u found in that
Which model is following in your company for developing software?
Did any one completed CSTE certiication? can u send sample question papers? how to apply that? pls send it to my mail id - dsnathi@gmail.com THANKS IN ADVANCE
Hi,friends i am going to write ICST certificate exam on augest.So can anybody post some of sample qusetions for ICST certificate exam.Really it will be useful for me
Hi friends Does anyone have screen shot of POWERMHS and please can anyone post anything which will be helpful to understand POWERMHS. thanks.
Hi there Does anybody can respond to my Questions? Is some one there to answer my Questions posted in Software testing category.pls E-mail to sunitht27@yahoo.com
About Hierarchy level in your company.