📜  门|门CS 2010 |问题 21

📅  最后修改于: 2021-09-25 07:23:20             🧑  作者: Mango

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

cs201021

(一) 19
(乙) 21
(三) 20
(四) 10答案:(一)
解释:

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

这个问题的测验