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 alpha and Beta Testing?

7 Answers  


How the Error, Defect and Bug are related to each other ?.

12 Answers   FIC, Vinfotech,


what is traceabiity matrix

4 Answers   nvidia, Wipro,


Hello Varun, Kindly send me the material as well as sample question papers as i am interested in doing the certification. Kindly help me out in this regard. Here is my mail ID: bjyothitesting@gmail.com

0 Answers  


do you or anyone has 100or over test cases in different categories

0 Answers  






!.what is the need for testing ?

3 Answers  


what are risks and contigencies(solutions) of an ecommerce (online shopping and bidding project)application?we describe this in Test plan can anyone tell me abt this?

0 Answers  


hi,i have just done a 3 days training in software testing,i read and to a certain limit understand the fundermentals but when it comes to real life scenerio i mean working on a job i dont think am confident in the practical aspect. if u feel me pls hola

1 Answers  


Suppose in your Project have 2 test engineers.Module A is tested by You and Module B is tested by another Test Engineer.module A and B has inter related functions.Then how you check the functionality of the module??

3 Answers   TCS,


Can anyone tell me the test scenario for railway reservation online booking. I need all test scenario.... please friends help me.

1 Answers   Accenture,


what statements did Philip Crosby use to capture the essence of the Quality Assurance discipline?

2 Answers   CTS,


i want manual and automation test cases and interview questions

0 Answers   Cambridge,


Categories