What is cyclomatic complexity used to measure ?

2026

What is cyclomatic complexity used to measure ?

Answer: B. Code complexity and number of independent pathsCyclomatic complexity is used to measure the number of independent paths through a program's source code, indicating its logical complexity and testing…

  1. A.

    Code size

  2. B.

    Code complexity and number of independent paths

  3. C.

    Execution time

  4. D.

    Memory usage

Attempted by 305 students.

Show answer & explanation

Correct answer: B

Cyclomatic complexity is used to measure the number of independent paths through a program's source code, indicating its logical complexity and testing requirements.

Explore the full course: Niacl Ao It Specialist

Loading lesson…