223k views
1 vote
A program with high cyclometric complexity is almost likely to be:

A. Large
B. Small
C. Difficult to write
D. Difficult to test

1 Answer

4 votes

Final answer:

A program with high cyclometric complexity is difficult to test.

Step-by-step explanation:

A program with high cyclometric complexity is almost likely to be difficult to test. The cyclometric complexity of a program is a measure of how many different paths there are through the code. So a program with high cyclometric complexity is likely to have many different paths, which makes it more difficult to test because you need to test each possible path to make sure the program functions correctly.

For example, imagine a program that includes lots of if statements and loops with different conditions. Each possible condition creates a new path through the code, and testing all of these different paths can be time-consuming and complex.

Therefore, the correct answer to the question is D. Difficult to test.

User Olle Kyrychenko
by
7.3k points