What is cyclomatic complexity?

Answers were Sorted based on User's Feedback



What is cyclomatic complexity?..

Answer / mfsi_chinmayb

Hi,
Cyclomatic complexcity is a methodology to measure the
complexity at a certain area of code.In other words it an
another way to reach at defect clustering.
Cyclomatic complexity is to measure the number of
independent paths in a program's source code.
The formula it follow: M = E- N + 2P
where

M = cyclomatic complexity
E = number of edges of the graph
N = number of nodes of the graph
P = the number of connected components.

**The easier one is like:n(umber of Decision statements in
the program being tested plus one.)
It provides the degree of testing/review required in a
certain area of code.

Is This Answer Correct ?    1 Yes 0 No

What is cyclomatic complexity?..

Answer / vidya

Cyclomatic complexity is a software metric (measurement).
It was developed by Thomas McCabe and is used to measure
the complexity of a program. It directly measures the
number of linearly independent paths through a program's
source code. It is computed using a graph that describes
the control flow of the program. The nodes of the graph
correspond to the commands of a program. A directed edge
connects two nodes if the second command might be executed
immediately after the first command.


Definition

M = E − N + 2P

where

M = cyclomatic complexity
E = the number of edges of the graph
N = the number of nodes of the graph
P = the number of connected components.

"M" is alternatively defined to be one larger than the
number of decision points (if/case-statements, while-
statements, etc) in a module (function, procedure, chart
node, etc.), or more generally a system.

Separate subroutines are treated as being independent,
disconnected components of the program's control flow graph.

Is This Answer Correct ?    1 Yes 1 No

What is cyclomatic complexity?..

Answer / rahat menon

cyclomatic complexity is one practised by phsyco people ...
it is a way to find out how complex dat person is ..

scientist who r making research on this has gone mad n
pissed ..

Is This Answer Correct ?    0 Yes 0 No

What is cyclomatic complexity?..

Answer / guest

RAHAT

Your Psycho spelling wrong. I have a feeling you are the
psyco. Since you are messing with wrong thing.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QA Concepts Interview Questions

What is User Acceptance testing?

7 Answers   Ordain Solutions,


what is the actual role of configaration Management? and How is it differ from SQA activities?

1 Answers  


What is the difference between quality assurance and software testing?

0 Answers  


Have you ever managed writing the test cases without having any documents?

0 Answers  


Is automating some test case is important? What about the maintenance? When will automated test become uneffective?

0 Answers  






What is role and responsibility of a senior software testing engineer in the company?( Day to day activities)

1 Answers   Infogain,


What is extreme programming and what is it got to do with testing?

0 Answers  


What is capture/replay tool?

0 Answers  


How would you ensure that your testing is complete and has good coverage?

0 Answers  


What is ISO 9000? Have you ever been in an ISO shop?

3 Answers  


What are the attributes of a good software qa engineer?

0 Answers  


what is the difference between testing techniques and principles of testing?Kindly explain both of them with an example.

0 Answers  


Categories