search
Log In
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
0 votes
21 views

 

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$
in IS&Software Engineering
recategorized by
21 views

1 Answer

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)

 

Related questions

0 votes
0 answers
1
39 views
Which of the following $UML$ diagrams has a static view? Collaboration diagram Use-Case diagram State chart diagram Activity diagram
asked Nov 20, 2020 in IS&Software Engineering jothee 39 views
0 votes
0 answers
2
44 views
Modifying the software by restructuring is called Adaptive maintenance Corrective maintenance Perfective maintenance Preventive maintenance
asked Nov 20, 2020 in IS&Software Engineering jothee 44 views
0 votes
1 answer
3
28 views
A company has a choice of two languages $L_1$ and $L_2$ to develop a software for their client. Number of LOC required to develop an application in $L_2$ is thrice the LOC in language $L_1$. Also, software has to be maintained for next $10$ years. Various parameters for ... $L_1$ for which cost of developing the software with both languages must be same? $2000$ $6000$ $3000$ $5000$
asked Nov 20, 2020 in IS&Software Engineering jothee 28 views
0 votes
1 answer
4
37 views
A Software project was estimated at $864$ Function Points. A six person team will be assigned to project consisting of a requirement gathering person, one designer, two programmers and two testers. The salary of the designer is $\text{Rs. } 70,000$ per month, requirement gatherer is $\text{Rs. } 50,000$ ... $\text{Rs. } 43,20,000$ $\text{Rs. } 33,10,000$ $\text{Rs. } 22,10,000$
asked Nov 20, 2020 in IS&Software Engineering jothee 37 views
...