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:
Both A and R are correct and R is the correct explanation of A
Both A and R are correct but R is NOT the correct explanation of A
A is correct but R is not correct
A is not correct but R is correct
- A.
1
- B.
2
- C.
3
- 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.