What is cyclomatic complexity used to measure ?

2026

What is cyclomatic complexity used to measure ?

  1. A.

    Code size

  2. B.

    Code complexity and number of independent paths

  3. C.

    Execution time

  4. D.

    Memory usage

Attempted by 95 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