CS FundamentalsVery hardGATE CS · Product placement
A module reads a raw record, cleans it, and passes the cleaned record to a parser whose output is passed to a validator - each step's output is the next step's input. Which type of cohesion is this?
- A. Communicational cohesion
- B. Procedural cohesion
- C. Sequential cohesion
- D. Temporal cohesion
Correct answer: C. Sequential cohesion
Sequential cohesion means the output of one element is the input of the next. Communicational cohesion only needs the elements to share the same data; procedural follows a control order without passing data; temporal groups things done at the same time.
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
- Match each scenario with its coupling type. P: a module passes a flag telling the callee which of several operations to perform. Q: a…
- A module 'Startup' opens the log file, loads configuration, connects to the database and clears the cache. These tasks are unrelated…
- 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?