what is Cyclomatic Complexity?

Answer Posted / sri

Cyclomatic complexity is a software metric (measurement)
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.

Cyclomatic complexity is computed using the control flow
graph of the program: the nodes of the graph correspond to
indivisible groups of commands of a program, and a directed
edge connects two nodes if the second command might be
executed immediately after the first command. Cyclomatic
complexity may also be applied to individual functions,
modules, methods or classes within a program.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Would we given training at first job (entry level)?

1345


What is basic block?

619


Explain what are test driver and test stub and why it is required?

583


What is backus-naur form?

575


What is your understanding regarding a test plan?

549






How do you determine which piece of software require how much testing?

1109


What test strategy followed in your project?

1736


Have you ever worked with QA in developing test tools? Explain the participation Development should have with QA in leveraging such test tools for QA use.

1973


i completed btech in IT in 2012.i am not good at programming.i want to do software testing.am i eligible for the course and how will be my future?please help and than you

3643


In one project, How much “%” effort made by SQA Tester? e.g. : developer = 35%, manager = 10%, etc.

1549


Q. How do you select product components for validation?What are the contents of QMS?

1533


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

1773


how cani do requirement testing using some testcase

1692


Enlist some of the key challenges that are faced while performing software testing.

590


What is quality audit?

648