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...

Find the Cyclometric complexity on the following p
seudocode

Do while records remain
read record;
if record field#1=0
then process record;store in buffer;
incremental counter;store in file.
reset counter;end if end do

please let me know the procedure too.

Answer Posted / roshni

The answer for this is 3

3 formula's to calculate Cyclomatic complexity. You can
choose either of them...
C.C = No of bounded regions +1
C.C = No of edges - No of nodes +1
C.C = No of predicate Nodes +1

Now let's consider the first formula to calculate as the
rest 2 diagrams require flow graphs to be drawn.

Do while loop forms 1 bounded region
and IF condition forms 1 bounded region.

So as per this formula, C.C = No of bounded regions +1
2 + 1 = 3

Is This Answer Correct ?    10 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I do Server side Interface testing in Web Testing?

3710


What is coverage and what are the different types of coverage techniques?

1093


what is the common in all s.o.p (standaed operating procedure)?

1942


What is mean by incident logging system ?

2518


How do you perform configuration management with typical revision control systems?

2127


Usually customers won’t give all the requirements. How will you manage & collect all the necessary information?

1165


write test case for gmail sign up page?

3758


what are the responsibilities for QA tester to test application on UNIX environment??? what skills required for unix???

2007


what is the testing approach for windows Explorer(Not IE Explorer)

2729


plz send the test scenarios and test cases for "user name should contain 4 to 8 chars and they should have only vowels"

2151


How do your characteristics compare to the profile of the ideal manager that you just described?

3100


What is a test severity and test priority? difference between them with suitable examples?

1810


What is difference between web site testing, desktop application testing and wireless application testing? what is the difference in testing strategy to test them?

2018


how do u manage scripts in winrunner when you application is changing frequently?

1904


What is localization testing (l10n testing)?

1196