CS FundamentalsModerateProduct company interview · GATE level

A control flow graph has 29 edges and 20 nodes. What is its cyclomatic complexity?

  1. A. 11~1
  2. B. 11
  3. C. 6
  4. D. 15

Correct answer: B. 11

V(G) = E − N + 2P = 29 − 20 + 2(1) = 11.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic