Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which of the following is not a size metric ?

  • A.LOC
  • B.Function Count
  • C.Program Length
  • D.Cyclomatic Complexity

Answer: D

The one that is not a size metric is Cyclomatic Complexity.

Cyclomatic complexity (McCabe) measures the logical complexity of a program: the number of linearly independent paths through its control-flow graph, V(G) = E - N + 2. Two programs of the same size can have very different cyclomatic complexity.

The others measure size. Lines of code count program lines. Function count (function points) measures size from the functionality delivered. Program length is Halstead's size measure, the total number of operator and operand occurrences, N = N1 + N2.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.