📜  门| GATE CS 2010 |问题21

📅  最后修改于: 2021-06-29 18:28:39             🧑  作者: Mango

下面显示的每个模块A和B的循环复杂度为10。右侧显示的顺序积分的循环复杂度是多少?

cs201021

(A) 19
(B) 21
(C) 20
(D) 10答案: (A)
解释:

Cyclomatic Complexity of module = Number of decision points + 1

Number of decision points in A = 10 - 1 = 9
Number of decision points in B = 10 - 1 = 9
Cyclomatic Complexity of the integration = Number of decision points + 1
                                         = (9 + 9) + 1
                                         = 19

这个问题的测验