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?
- A. Temporal cohesion, weaker than procedural but stronger than logical cohesion
- B. Functional cohesion, the strongest
- C. Logical cohesion, the second weakest
- 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.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A UI component subscribes to a long-lived event bus in its constructor but never unsubscribes. Screens using it are opened and closed many…
- In GRASP terms, an Order aggregates its LineItems and has the data needed to initialise them. Which class should create LineItem objects…
- Assertion (A): Classes that call a Singleton through its global getInstance() are harder to unit-test. Reason (R): The dependency is…
- In the 2020 Scrum Guide each artifact has a commitment. Which pairing is correct?
- Midway through a sprint, a market change makes the Sprint Goal obsolete. According to the Scrum Guide, who can cancel the sprint?
- At the end of a sprint, one backlog item is coded but its automated tests, required by the Definition of Done, are not written. What does…