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 the format of test report?

2 Answers  


what is test log? what fields does it contain, At which stage do we use this in real time?

2 Answers  


What is Conventional & Unconventional testing?

0 Answers  


HI. ANYONE HAS ATTENDED INTERVIEW FOR TESTING IN MINDKRAFT GLOBAL. I HAVE WRITTEN TEST FOR SOFTWARE TESTING. CAN ANYONE TELL ME WHAT ALL QUESTIONS CANBE ASKED. PLS REPLY. THANK YOU

0 Answers  


One or more text elements or even all text elements in a page should be markable as required to match. -What are the categories of content validation is described in the text above?

1 Answers  






what do you mean by documentation testing

4 Answers  


what is deployement?

5 Answers   Kumaran Systems,


what are the techniques used for writing functional test case ?

3 Answers   ADP, Deloitte,


What is the difference between Technical TestCase and functional Testcase.

1 Answers  


Give me two reasons why the bug has not been fixed by developer ?

3 Answers  


What are the type of testinmg to test in Unit, System,Integration and User acceptance testing< client side>

1 Answers  


what is testing methodologies manually following by the tester in an company? pl give me answer

3 Answers   SGT,


Categories