CS FundamentalsModerateAccenture · Tech Mahindra pattern

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

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

Correct answer: B. 7

V(G) = E − N + 2P = 15 − 10 + 2(1) = 7.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic