How the value of P in cyclomatic complexity is calculated?
P:The number of connected path.

Answer Posted / dheeraj shandilya

McCabe's cyclomatic complexity(M) is given by:
M=L-N+2P
where L= no. of links in flowgraph
N= no. of nodes in flowgraph and
P= no. of connected component
(or no. of disconnected parts of flowgraph)
In graph theory, a connected component of an undirected
graph is a subgraph in which any two vertices are connected
to each other by paths, and which is connected to no
additional vertices. For example, see slide no 21(40) of

www.cs.drexel.edu/~spiros/teaching/SE320/slides/metrics.ppt

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Encapsulation of attributes and operations inside objects makes it easy to obtain object state information during testing. is it true.explain

1863


can anybody tell me what is release process of company? release note?

1686


How can you do the scalability testing?

949


On login window for username and password auto populated field means what !

1491


What different types of manual testing are there?

853


What is a top-down and bottom-up approach in testing?

902


9.Data – driver automation typically includes?

3117


What are joins and subjoins in the data bases what is data driven testing what is verification and validation What is Quality Assurance (QA) and Quality Control (QC) Is Verification is related to QA and Validation is related to QC ? which type of model you follow basically in your project what is a use case How to test a Bike how to test a Lift (Elevator). which configuration Management tool do you use which Bug tracking tool do you use explain Bug life cycle what is Regression testing what is ALPHA testing ans BETA testing What types of testings comes under Non functional testing what is TEST DIRECTOR what is CMM and CMM i whar are Expressions in Winrunner What is a Compile module Is it Necessary to open the tool first or the application first after getting a bug what will you do if you add a new object or a new module for the existing application then how will you test the application which Defect tracking tool do you use what is change management What is smoke Testing what is sanity testing A application is given to you but the requirements and functionalities are missing what will you do to start the testing which testing documents will be received by the client

2239


What is an exit criteria?

884


Can you explain an application boundary?

842


What is the difference between functional testing and integration testing?

923


Write the 10 high test cases for making video call/face time?? Write the test cases for credit card accessing the money transfer?? Write the test cases for file transfer from one user to other from Google Drive/drop box?

3914


How can write testcases on a code under development pls give asnwer

1776


Explain the strategy for testing a Java application?

1864


After insert the record in front-end, how will you check the back end by manually? Please explain?

820