The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+9 votes
3.3k views

The cyclomatic complexity of each of the modules A and 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
asked in IS&Software Engineering by Veteran (106k points)
retagged by | 3.3k views

4 Answers

+22 votes
Best answer
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
answered by Boss (13.7k points)
selected by
+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

answered by Boss (34.9k points)
0
is there any other way? ... @shiva veteran
+1 vote
a) 19
answered by Loyal (5.3k points)
0 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

answered by (307 points)
Answer:

Related questions



Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

42,619 questions
48,614 answers
155,881 comments
63,863 users