The GATE Grind

GATE 2013 CS (CS1) – Question 48

Software Engineering · Modular Software Design · 2 marks · Multiple choice

Filled circles in the shown access graphs are methods, unfilled circles attributes. Move method m from M₁ to M₂ while keeping attributes fixed. What happens to average cohesion and intermodule coupling?

Diagram for GATE 2013 CS (CS1) question 48
  1. No change
  2. Cohesion rises, coupling falls
  3. Cohesion and coupling both fall
  4. Cohesion and coupling both rise

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (A) No change

Explanation

Method m has the same number of attribute accesses into each module. Moving it exchanges which of those accesses are internal and external without changing their total counts. Under the graph-based measure assumed by the paper, average cohesion and coupling therefore remain unchanged, A.

More Modular Software Design questions

All Modular Software Design questions →