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
What is Test Design?
Test cases have written according to Flow of the software working or according to Screens?
What are the principles of software testing?
Negatives test cases of gmail login page With its severity , priority and expected results columns Through test case template-oodles technologies gurgoan
can anybody send the project you have tested with the clear descriptions,and recent bugs u found in that
MS Paint
1. what is baseline document , can you say any two ?
Write the test cases for godaddy home page
Test Cases For Router&Switch
You want a automation tool to be used for your project. How will you convince the client for the same. Please give me specific answer.
My name is Akpos from Nigeria. I have finished manual testing course. Please, can someone advise me where to go on from here?
Suggest some book to learn more test case???
Which is the best testing model?
Have u ever done testing related to a database,give examples to support u r answer.
What is middle ware testing?? what are the companies using this tech?