WBJECA 2025 — Computer PYQ
WBJECA | Computer | 2025which of the following is true about cyclomatic complexity?
Choose the correct answer:
- A.
It measures the number of independent paths in a program.
- B.
It measures the size of the program in lines of code.
(Correct Answer) - C.
It measures the size of the program in lines of code.
- D.
It is calculated as E−N+2, where E is edges and N is nodes.
It measures the size of the program in lines of code.
Explanation
The correct answer is (A) It measures the number of independent paths in a program.
Cyclomatic Complexity is a software metric used to indicate the complexity of a program. It directly measures the number of linearly independent paths through a program's source code. A higher cyclomatic complexity value suggests that a program is more complex, harder to test, and more prone to defects.
Explanation
The correct answer is (A) It measures the number of independent paths in a program.
Cyclomatic Complexity is a software metric used to indicate the complexity of a program. It directly measures the number of linearly independent paths through a program's source code. A higher cyclomatic complexity value suggests that a program is more complex, harder to test, and more prone to defects.

