nerdexam
Scrum

PSD · Question #112

Which three of the following are code quality metrics?

The correct answer is D. Depth of inheritance E. Cyclomatic complexity F. Class coupling. Number of checkins per day says something about whether the developers are committing often enough. Depth of inheritance says some about complexiity, just like class coupling and cyclomatic complexity. Unit tests per class don't say anything about quality, though no unit tests mi

Refactoring and Design

Question

Which three of the following are code quality metrics?

Options

  • AUnit tests per class
  • BCycle time per product backlog item
  • CNumber of check-ins per day
  • DDepth of inheritance
  • ECyclomatic complexity
  • FClass coupling

How the community answered

(69 responses)
  • A
    7% (5)
  • B
    4% (3)
  • C
    1% (1)
  • D
    87% (60)

Explanation

Number of checkins per day says something about whether the developers are committing often enough. Depth of inheritance says some about complexiity, just like class coupling and cyclomatic complexity. Unit tests per class don't say anything about quality, though no unit tests might indicate a maintenance problem. Cycle time per product backlog item says something about the scrum process.

Topics

#code quality metrics#cyclomatic complexity#class coupling#depth of inheritance

Community Discussion

No community discussion yet for this question.

Full PSD Practice