Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What if an organization is growing so fast that fixed testing processes are impossible? What to do in such situations?

1506


Can list out some disadvantages of manual testing?

1143


What impact ratings have you used in your projects?

1163


what are the risk factors in the project? what is the base for testplan and entry criteria ,exit criteria for test plan?

2506


Which criteria should take in account while doing CMS testing of any project?

1812


If anybody from banglore having the real time exp in manual testing with 3+ yrs exp and looking for change send your profile to vinodhanandhan@gmail.com

1990


Hi,Please can any one tell me about SAP Testing concepts.

2071


Can automation testing replace manual testing?

1176


Inwhat basis the time is allocated for testing the application?

1927


Hello can anybody list out supported and unsupported browsers for Window OS,Android OS,MAC OS Ubuntu

1680


What are the main key components in Web applications and Client Server applications? and their differences?

2135


What do we need to build a quality QC team ? a QC manager with all junior QCs or a QC manager with all senior QCs?

2150


What is the purpose of test strategy?

1232


How do you go about testing a project?

2014


any one please send me any test case examples with tabular columns in manual testing

2341