CS FundamentalsModerateWipro · Accenture pattern

A control flow graph has 6 edges and 5 nodes. What is its cyclomatic complexity?

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

Correct answer: C. 3

V(G) = E − N + 2P = 6 − 5 + 2(1) = 3.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic