CS FundamentalsHardGATE CS · TCS Digital

A module 'Startup' opens the log file, loads configuration, connects to the database and clears the cache. These tasks are unrelated except that they all happen when the system boots. Which cohesion is this, and where does it rank?

  1. A. Temporal cohesion, weaker than procedural but stronger than logical cohesion
  2. B. Functional cohesion, the strongest
  3. C. Logical cohesion, the second weakest
  4. D. Coincidental cohesion, the weakest

Correct answer: A. Temporal cohesion, weaker than procedural but stronger than logical cohesion

Grouping by time of execution is temporal cohesion. The usual ranking from best to worst is functional, sequential, communicational, procedural, temporal, logical, coincidental.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic