Vaidikalaya

MCQ On Coupling And Cohesion


Q1. Coupling refers to:.
  1. Degree to which elements inside a module belong together
  2. Amount of reusable code in a system
  3. Degree of interdependence between modules
  4. Number of functions inside a module

Answer: c, Degree of interdependence between modules

Solution: Degree of interdependence between modules

Q2. Which among the following shows increasing order of coupling (low -> high)?.
  1. Content -> Common -> Data
  2. Data -> Stamp -> Content
  3. Stamp -> External -> Data
  4. Data -> Control -> Content

Answer: d, Data -> Control -> Content

Solution: Coupling increases from Data (best) ? Stamp ? Control ? External ? Common ? Content (worst)

Q3. Which type of coupling is the worst?.
  1. Content Coupling
  2. Data Coupling
  3. Stamp Coupling
  4. Control Coupling

Answer: a, Content Coupling

Solution: Content coupling occurs when one module directly modifies or relies on another module’s internal data.

Q4. Which coupling is considered the best?.
  1. Control Coupling
  2. Common Coupling
  3. Stamp Coupling
  4. Data Coupling

Answer: d, Data Coupling

Solution: Data coupling means modules share only necessary data, making them loosely connected.

Q5. Control coupling happens when:.
  1. Modules share entire data structures
  2. A module passes a flag that affects the behavior of another module
  3. Modules modify each other's local data
  4. Modules use shared global variables

Answer: b, A module passes a flag that affects the behavior of another module

Solution: Control coupling occurs when one module controls another using flags or parameters.

Q6. Common coupling involves:.
  1. Sharing global variables
  2. Passing only required data
  3. Unrelated functions grouped together
  4. Sequential execution

Answer: a, Sharing global variables

Solution: Common coupling is when multiple modules access the same global data, increasing risk.

Q7. Stamp coupling refers to:.
  1. Passing full data structures unnecessarily
  2. Using global variables
  3. Passing minimal required data
  4. Modules working independently

Answer: a, Passing full data structures unnecessarily

Solution: Stamp coupling occurs when complex structures are passed even though only some fields are required.

Q8. Cohesion refers to:.
  1. Degree of interdependence between modules
  2. Degree to which elements inside a module belong together
  3. Amount of shared global data
  4. Communication between threads

Answer: b, Degree to which elements inside a module belong together

Solution: Degree to which elements inside a module belong together

Q9. Which among the following shows increasing order of cohesion (low -> high)?.
  1. Functional -> Logical -> Temporal
  2. Logical -> Temporal -> Functional
  3. Coincidental -> Logical -> Functional
  4. Temporal -> Functional -> Procedural

Answer: c, Coincidental -> Logical -> Functional

Solution: Cohesion increases from Coincidental (worst) ? Logical ? Functional (best)

Q10. Which cohesion type is considered the best?.
  1. Logical Cohesion
  2. Functional Cohesion
  3. Temporal Cohesion
  4. Procedural Cohesion

Answer: b, Functional Cohesion

Solution: Functional cohesion is the strongest form where all module elements work toward a single task.

Q11. Coincidental cohesion refers to:.
  1. Tasks grouped by sequence
  2. Tasks grouped by time
  3. Unrelated tasks grouped together
  4. Tasks using same input/output

Answer: c, Unrelated tasks grouped together

Solution: Coincidental cohesion is the weakest form where module elements have no meaningful relationship.

Q12. Sequential cohesion occurs when:.
  1. Tasks run at the same time
  2. Output of one becomes input to another
  3. Functions are logically grouped
  4. Tasks share global data

Answer: b, Output of one becomes input to another

Solution: Sequential cohesion means the work output by one module is used as input by the next.

Q13. Logical cohesion groups tasks based on:.
  1. Execution sequence
  2. Timing
  3. Category or type of task
  4. Input-output relation

Answer: c, Category or type of task

Solution: Logical cohesion groups tasks because they fall into the same category, not due to functional relatedness.

Q14. Temporal cohesion groups tasks that:.
  1. Are executed at the same time
  2. Use the same data
  3. Are unrelated
  4. Depend on each other

Answer: a, Are executed at the same time

Solution: Temporal cohesion refers to grouping tasks that must occur together in time, like initialization routines.

Q15. Module design is used to maximize cohesion and minimize coupling. Which of the following is the key to implement this rule?.
  1. Inheritance
  2. Polymorphism
  3. Encapsulation
  4. Abstraction

Answer: c, Encapsulation

Q16. Which of the following combination is preferred with respect to cohesion and coupling :.
  1. low and low
  2. low and high
  3. high and low
  4. high and high

Answer: c, high and low