edited by
12,122 views
14 votes
14 votes

The cyclomatic complexity of each of the modules $\text{A}$ and $\text{B}$ shown below is $10.$ What is the cyclomatic complexity of the sequential integration shown on the right hand side?

  1. $19$
  2. $21$
  3. $20$
  4. $10$
edited by

4 Answers

Best answer
29 votes
29 votes
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
selected by
5 votes
5 votes

Cyclomatic complexity of A=B=10

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

Answer must be A

2 votes
2 votes

As we know their are several ways to find Cyclomatic complexity one of the is :

Cyclomatic complexity = Number of enclosed regions + 1  

Here, +1 is because of count of external region 

Therefore, Cyclomatic complexity of A is 10 (given) which means Number of enclosed regions + 1 external region

and Cyclomatic complexity of B is 10 (given) which means Number of enclosed regions + 1 external region

When we combine both the modules external region becomes same for both

Hence, 10 + 10 - 1 = 19

Option (A) is correct.

1 votes
1 votes

cyclometric complexcity = edges - nodes +2 

i think, while joining two independent graph structures sequentially, an extra edge is appeared between them , so 10+10+1 =21

Ans A

Answer:

Related questions

8 votes
8 votes
5 answers
1