Question discussion

A program's flow graph has 11 nodes and 14 edges and is one connected component. Its cyclomatic complexity V(G) is

1336Medium DSSSB TGT Computer Science 0 replies 1 views
0

A program's flow graph has 11 nodes and 14 edges and is one connected component. Its cyclomatic complexity V(G) is

  • A3
  • B4
  • C6
  • D5
Correct answer: D

Explanation

V(G) = E − N + 2 = 14 − 11 + 2 = 5.

Discussion 0

Nobody has replied yet. Start the discussion!