###### Digital-Logic-Design

October 14, 2023###### Digital-Logic-Design

October 14, 2023# Software-Engineering

Question 67 |

The cyclomatic complexity of each of the modules X and Y shown below is 10. What is the cyclomatic complexity of the sequential integration shown on the right-hand side?

21 | |

19 | |

20 | |

10 |

Question 67 Explanation:

Cyclomatic complexity uses 3 formulas

1. Number of regions + 1

2. Predicate + 1

3. Edges-Vertices+2

1. Number of regions + 1

2. Predicate + 1

3. Edges-Vertices+2

But here they already given complexity. So each module complexity is 10.

There are 2 modules named A and B having decision points are (10-1)+(10-1).

Cyclomatic complexity of the sequential integration is = Number of decision points + 1

= 18+ 1

= 19

Correct Answer: B

Question 67 Explanation:

Cyclomatic complexity uses 3 formulas

1. Number of regions + 1

2. Predicate + 1

3. Edges-Vertices+2

1. Number of regions + 1

2. Predicate + 1

3. Edges-Vertices+2

But here they already given complexity. So each module complexity is 10.

There are 2 modules named A and B having decision points are (10-1)+(10-1).

Cyclomatic complexity of the sequential integration is = Number of decision points + 1

= 18+ 1

= 19

Subscribe

Login

0 Comments