recategorized by
6,055 views
0 votes
0 votes

 

Arrange the following types of Cohesion from the best to worst type.

  1. Logical Cohesion
  2. Sequential Cohesion
  3. Communication Cohesion
  4. Temporal Cohesion
  5. Procedural Cohesion

Choose the correct answer from the options given below:

  1. $a \rightarrow d \rightarrow e \rightarrow c \rightarrow b$
  2. $a \rightarrow e \rightarrow d \rightarrow c \rightarrow b$
  3. $b \rightarrow e \rightarrow c \rightarrow d \rightarrow a$
  4. $b \rightarrow c \rightarrow e \rightarrow d \rightarrow a$
recategorized by

1 Answer

0 votes
0 votes

Cohesion types, from the worst to the best, are as follows:

Coincidental cohesion (worst)

Coincidental cohesion is when parts of a module are grouped arbitrarily; the only relationship between the parts is that they have been grouped together (e.g., a “Utilities” class).

Logical cohesion

Logical cohesion is when parts of a module are grouped because they are logically categorized to do the same thing even though they are different by nature (e.g., grouping all mouse and keyboard input handling routines).

Temporal cohesion

Temporal cohesion is when parts of a module are grouped by when they are processed - the parts are processed at a particular time in program execution (e.g., a function which is called after catching an exception which closes open files, creates an error log, and notifies the user).

Procedural cohesion

Procedural cohesion is when parts of a module are grouped because they always follow a certain sequence of execution (e.g., a function which checks file permissions and then opens the file).

Communicational/informational cohesion

Communicational cohesion is when parts of a module are grouped because they operate on the same data (e.g., a module which operates on the same record of information).

Sequential cohesion 

Sequential cohesion is when parts of a module are grouped because the output from one part is the input to another part like an assembly line (e.g., a function which reads data from a file and processes the data).

Functional cohesion (best)

Functional cohesion is when parts of a module are grouped because they all contribute to a single well-defined task of the module (e.g., Lexical analysis of an XML string).

 

Hence ans is option D) b→c→e→d→a

https://en.wikipedia.org/wiki/Cohesion_(computer_science)

 

Answer:

Related questions

0 votes
0 votes
1 answer
1
go_editor asked Nov 20, 2020
1,272 views
Which of the following $UML$ diagrams has a static view?Collaboration diagramUse-Case diagramState chart diagramActivity diagram
0 votes
0 votes
2 answers
2
go_editor asked Nov 20, 2020
1,029 views
Modifying the software by restructuring is calledAdaptive maintenanceCorrective maintenancePerfective maintenancePreventive maintenance