CS FundamentalsModerateProduct company interview · GATE level

A control flow graph has 13 edges and 11 nodes. What is its cyclomatic complexity?

  1. A. 4~1
  2. B. 4
  3. C. 1
  4. D. 7

Correct answer: B. 4

V(G) = E − N + 2P = 13 − 11 + 2(1) = 4.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic