...
Question 3678 – Data-Structures
November 28, 2023
Computer-Networks
November 28, 2023
Question 3678 – Data-Structures
November 28, 2023
Computer-Networks
November 28, 2023

Question 3697 – Data-Structures

The cyclomatic complexity of a flow graph V(G), in terms of predicate nodes is: [Where P is number of predicate nodes in flow graph V(G).]

Correct Answer: A

Question 408 Explanation: 
There are 3 formulas to find cyclomatic complexity.
1. The number of regions corresponds to the cyclomatic complexity
2. V(G),Flow graph is defined as V(G)=E-N+2 where E is the number of flow graph edges, and N is the number of flow graph nodes.
3. V(G),Flow graph is defined as V(G)=P+1 where p is the number of predicate nodes contained in the flow graph G.
A
P + 1
B
P – 1
C
P – 2
D
P + 2

Leave a Reply

Your email address will not be published. Required fields are marked *