UGC NET Paper 2 (Computer Science)Hard

A flow graph has 17 edges and 13 nodes with one connected component. McCabe's cyclomatic complexity V(G) is:

  1. A. 4
  2. B. 5
  3. C. 6
  4. D. 7

Correct answer: C. 6

V(G) = E - N + 2 = 6, equal to the number of predicate nodes plus one.

More UGC NET Computer Science and Applications questions

Exams that ask this topic