Given below are two statements: one is labelled as Assertion A and the other…

2026

Given below are two statements: one is labelled as Assertion A and the other is labelled as Reason R.

Assertion A: Higher cyclomatic complexity indicates a more complex program.

Reason R: It is calculated based on the number of independent execution path in the program.

In the light of the above statements, choose the most appropriate answer from the options given below:

  1. Both A and R are correct and R is the correct explanation of A

  2. Both A and R are correct but R is NOT the correct explanation of A

  3. A is correct but R is not correct

  4. A is not correct but R is correct

  1. A.

    1

  2. B.

    2

  3. C.

    3

  4. D.

    4

Attempted by 90 students.

Show answer & explanation

Correct answer: A

Cyclomatic complexity is a software metric that measures the number of linearly independent paths through a program's source code. Assertion A is correct because higher complexity indicates more complex logic and potential for errors. Reason R is also correct as it accurately describes the calculation basis (independent execution paths). Since the definition of complexity directly relies on path count, Reason R correctly explains Assertion A. Therefore, both statements are correct and R is the correct explanation of A.

Explore the full course: Mppsc Assistant Professor