GATE 2010 CS (CS1) – Question 31
Modules A and B each have cyclomatic complexity ten. They are sequentially integrated as shown. What is the combined complexity?

Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (A) 19
Explanation
Cyclomatic complexity counts independent paths as decisions plus one for a connected control-flow graph. Each module contributes nine decisions. Sequential composition therefore has 9+9+1=19, A, equivalently M(A)+M(B)−1.