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.

Answers were Sorted based on User's Feedback



Find the Cyclometric complexity on the following p seudocode Do while records remain read rec..

Answer / 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

Find the Cyclometric complexity on the following p seudocode Do while records remain read rec..

Answer / faisal

It is actually

No.of edges - No. of Nodes + 2

Is This Answer Correct ?    3 Yes 1 No

Find the Cyclometric complexity on the following p seudocode Do while records remain read rec..

Answer / sriharsha

Listen i will tell u a basic funda:

Cylometric complexity is THE NO. OF LOOPS + 1

so in the question u have to check how many loops r present.

if its 1 then the ans is 2

if its 0 then the nas is 1

Is This Answer Correct ?    4 Yes 3 No

Post New Answer

More Manual Testing Interview Questions

what is localization testing?is it a WBT or BBT technique? thanx mahendar for ur valuable answer.

7 Answers   AZTEC, HCL,


What is Conventional & Unconventional testing?

0 Answers  


what is boundary value analysis?

4 Answers  


In the team both developers as well as testers will be included na,if so then the same TL will assign the work for testers also or else TL will be different for testers?

2 Answers  


what is Non-Functional testing? & their types?

9 Answers   AppLabs,


What are the activities involved by the Test engineer (having 2+ yrs of exp).

1 Answers   Covansys, SLK Software,


what is test scenario?

4 Answers  


What is the main difference between Smoke and sanity testing? Can u plz give me some examples? And to answer in interwview?

3 Answers   Thought Works,


what are the testing methodologies?

15 Answers   Span Systems,


1.What is the difference between QA and verfication? 2.What is the difference between QA and verfication? 3.what is the difference between teststrategy and test methodologies? 4.what is the difference between teststrategy and test methodologies?

4 Answers   InterSoft,


What are the various techniques in black box testing?

0 Answers  


What is Component Testing? How to do Component Level Testing?

20 Answers   AppLabs, Coil,


Categories