CS FundamentalsModerateHCL · Tech Mahindra pattern

A control flow graph has 9 edges and 7 nodes. What is its cyclomatic complexity?

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

Correct answer: A. 4

V(G) = E − N + 2P = 9 − 7 + 2(1) = 4.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic