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

📅  最后修改于: 2021-09-24 05:24:49             🧑  作者: 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) I、II 和 III答案:(乙)
解释:

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. 

这个问题的测验