The cyclomatic complexity of each of the modules X and Y shown below is 10.…
2017
The cyclomatic complexity of each of the modules X and Y shown below is 10. What is the cyclomatic complexity of the sequential integration shown on the right hand side?

- A.
21
- B.
19
- C.
20
- D.
10
Attempted by 49 students.
Show answer & explanation
Correct answer: B
For sequential integration of modules, the total cyclomatic complexity is calculated as V1 + V2 - 1. Here, both modules have a complexity of 10. Therefore, the combined complexity is 10 + 10 - 1 = 19.