📜  门| GATE-CS-2009 |第50章

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

考虑以下有关程序模块控制流程图的圈复杂度的陈述。以下哪项是正确的?

I. The cyclomatic complexity of a module is equal to the maximum number of 
   linearly independent circuits in the graph.
II. The cyclomatic complexity of a module is the number of decisions in the 
    module plus one,where a decision is effectively any conditional statement 
    in the module.
III.The cyclomatic complexity can also be used as a number of linearly 
     independent paths that should be tested during path coverage testing. 

(A) I和II
(B) II和III
(C) I和III
(D)一,二和三答案: (B)
解释:

TRUE: The cyclomatic complexity of a module is the number of decisions in the 
     module plus one,where a decision is effectively any conditional statement 
     in the module.
TRUE: The cyclomatic complexity can also be used as a number of linearly 
     independent paths that should be tested during path coverage testing. 

这个问题的测验