CS FundamentalsModerateCognizant · Capgemini pattern

A control flow graph has 26 edges and 18 nodes. What is its cyclomatic complexity?

  1. A. 8
  2. B. 12
  3. C. 10~1
  4. D. 10

Correct answer: D. 10

V(G) = E − N + 2P = 26 − 18 + 2(1) = 10.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic