CS FundamentalsModerateTCS NQT · Infosys pattern

A control flow graph has 22 edges and 15 nodes. What is its cyclomatic complexity?

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

Correct answer: D. 9

V(G) = E − N + 2P = 22 − 15 + 2(1) = 9.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic