Advanced Code Quality #cyclomatic-complexity #cognitive-complexity #maintainability-index

Code Complexity Metrics Vocabulary

5 exercises — master the vocabulary of code complexity: cyclomatic and cognitive complexity, maintainability index, Halstead metrics, and using complexity as a risk proxy.

0 / 18 completed
1 / 18

A tech lead reviews a pull request and opens SonarQube, pointing at a result: "This function has a cyclomatic complexity of 15." What does cyclomatic complexity measure, and what does a score of 15 signify?

Frequently Asked Questions

What does the "Code Complexity Metrics" exercise practise?

Practice the English vocabulary of code complexity metrics: cyclomatic complexity, cognitive complexity, maintainability index, and Halstead metrics. 5 exercises.

How many questions are in this exercise?

This exercise has 18 questions, each multiple-choice with a full explanation shown after you answer.

What English level is this exercise for?

This exercise is tagged Advanced. If the vocabulary feels difficult, browse the Code Quality & Metrics category page for an easier module to start with.