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

If there are more number of test cases, how can u pick up a selective test case?

4 Answers   Wipro,


What processes/methodologies are you familiar with?

0 Answers  


how to retrive only second row from table?

3 Answers   CTS,


does tester use design document for writing testcases

4 Answers   CMC,


PLS SEND REAL TIMERS, WHAT IS SOA TESTING..IM TRYING 3+ YR.. I HAVE GOOD KNOWLEDGE ON MANUAL TESTING... NOW IM NEW TO LEARN "SOA TESTING" IS BEST OR NOT? BEFORE LEARNING SOA TESTING ANY SKILLS ARE REQUIRED..... AND NOW WHAT IS THE MARKET FOR SOA TESTING... AND IT IS BASED ON PROGRAMMING OR NOT?

0 Answers  






How do test documents in a project span across the software development lifecycle?

0 Answers  


Suppose a tester reports the bug to the developer and developer rejects it saying that the bug which is reported by tester is not a bug.In such a case what should a tester do?...Kindly answer this question ..

9 Answers   Infinite Computer Solutions, PayPal,


is live tech training institute best for learning testing tools in ameerpet

2 Answers  


what is the difference between bug log and defect report?

1 Answers  


various scenarios in any banking project.please give this in detail.

1 Answers  


whta is compile module?

0 Answers  


what is meant by bug identification ratio?

1 Answers   Symphony,


Categories