what is cyclomatic complexity? plz explain with example
Answer Posted / devyani
Below is a simple program as an example:
IF A = 354
THEN IF B > C
THEN A = B
ELSEA= C
ENDIF
ENDIF
Print A
The control flow generated from the program would look like Figure 3.2.
The control flow shows seven nodes (shapes) and eight edges (lines), thus using the formal formula the cyclomatic complexity is 8-7 + 2 = 3. In this case there is no graph called or subroutine. Alternatively one may calculate the cyclomatic complexity using the decision points rule. Since there are two decision points, the cyclomatic complexity is 2 + 1 = 3.
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
If anybody from banglore having the real time exp in manual testing with 3+ yrs exp and looking for change send your profile to vinodhanandhan@gmail.com
Unit Testing can be done by using Nunit?
What is change request, how you use it?
How does compatibility testing differ while testing in Internet explorer and testing in Firefox?
what are the functional test cases for enter user name,enter pass word,click on ok(only functional test cases)
iam having 2+yr sof exp in manual testing, at present working in chennai,want to relocte to hyd .if any openings let me know.my id : vaniramymail.com
how to connect your project in database?
integration test cases for mouse and keyboard
What is smoke test?
What a team leader will test first when s/he will get new module to test?
value momentum
wat is test management ?what are the components available in test management?
Have you ever completely tested any part of a product? How?
hai friends can u expalin about real time process of testing at the company, like flow diagram
What are the main key components in web applications?