nerdexam
Scrum

PSD · Question #166

Cyclomatic complexity is a metric for:

The correct answer is A. Measuring branching structures and nesting levels in code. Cyclomatic complexity is a number expressing the number of different paths that can be taken throughout the code. Higher means complex code.

Refactoring and Design

Question

Cyclomatic complexity is a metric for:

Options

  • AMeasuring branching structures and nesting levels in code
  • BAssessing if code is written in as few lines as possible
  • CDetermining the number of unit tests required to ensure correctness
  • DDemonstrating code is well structured and cleanly implemented

How the community answered

(33 responses)
  • A
    91% (30)
  • B
    6% (2)
  • D
    3% (1)

Explanation

Cyclomatic complexity is a number expressing the number of different paths that can be taken throughout the code. Higher means complex code.

Topics

#cyclomatic complexity#code metrics#code quality#branching structures

Community Discussion

No community discussion yet for this question.

Full PSD Practice