SlideShare a Scribd company logo
1 of 1
Download to read offline
If a function F) performs the following operations, what knd of cohesion does it have?
If it has the optimal cohesion, explain why. If not, correct it.
turn on a LED light;
send a message to a remote computer;
poll a sensor to get a reading;
Solution
Cohesion is the term which refers to the degree by which the various elements inside a function
are related to each other.
In the given list of operations, there is no clear relationship between any of the operations.
Turning on the LED light and sending message to a remote computer can be assumed to be a
form of signalling or notification. However, polling a sensor is clearly an input operation.
Also each of the operations is independent. So, the cohesion in this function is weak.
It can be categorized as the coincidental cohesion. It is the worst kind of cohesion. The
operations are arbitrarily jammed into the same function without any relationship. The only
relationship between them is that all of them are put into the same function.
Therefore, the cohesion is weak. It is coincidental and not optimal.
---------------------------------------------------------------------------------------------------------------------
-
If you have any queries regarding this, please ask in the comments and I will make sure to help
you with it.

More Related Content

More from AroraRajinder1

Hint Assume the binary tree is properly balanced (the depth of the .pdf
Hint Assume the binary tree is properly balanced (the depth of the .pdfHint Assume the binary tree is properly balanced (the depth of the .pdf
Hint Assume the binary tree is properly balanced (the depth of the .pdfAroraRajinder1
 
essay question Explain how everyday life changes for slaves after e.pdf
essay question Explain how everyday life changes for slaves after e.pdfessay question Explain how everyday life changes for slaves after e.pdf
essay question Explain how everyday life changes for slaves after e.pdfAroraRajinder1
 
Detection versus recognition ... Investigate Face++ at Feel free to.pdf
Detection versus recognition ...  Investigate Face++ at  Feel free to.pdfDetection versus recognition ...  Investigate Face++ at  Feel free to.pdf
Detection versus recognition ... Investigate Face++ at Feel free to.pdfAroraRajinder1
 
Dent disease is a rare disorder of the kidney in which reabsorption o.pdf
Dent disease is a rare disorder of the kidney in which reabsorption o.pdfDent disease is a rare disorder of the kidney in which reabsorption o.pdf
Dent disease is a rare disorder of the kidney in which reabsorption o.pdfAroraRajinder1
 
DEFINE maternal determinant (3-4 sentences).SolutionMaternal .pdf
DEFINE maternal determinant (3-4 sentences).SolutionMaternal .pdfDEFINE maternal determinant (3-4 sentences).SolutionMaternal .pdf
DEFINE maternal determinant (3-4 sentences).SolutionMaternal .pdfAroraRajinder1
 
Consider a partial function.For every unmapped element in its doma.pdf
Consider a partial function.For every unmapped element in its doma.pdfConsider a partial function.For every unmapped element in its doma.pdf
Consider a partial function.For every unmapped element in its doma.pdfAroraRajinder1
 
Compare and Contrast hollow core fibers for high power delivery an.pdf
Compare and Contrast hollow core fibers for high power delivery an.pdfCompare and Contrast hollow core fibers for high power delivery an.pdf
Compare and Contrast hollow core fibers for high power delivery an.pdfAroraRajinder1
 
Can we create an object of type Interface Explain your answer.So.pdf
Can we create an object of type Interface Explain your answer.So.pdfCan we create an object of type Interface Explain your answer.So.pdf
Can we create an object of type Interface Explain your answer.So.pdfAroraRajinder1
 
Cancel QuestionSolutionSince Descriptive statistics uses the d.pdf
Cancel QuestionSolutionSince Descriptive statistics uses the d.pdfCancel QuestionSolutionSince Descriptive statistics uses the d.pdf
Cancel QuestionSolutionSince Descriptive statistics uses the d.pdfAroraRajinder1
 
According to the cladogram, what derived trait is shared by primates .pdf
According to the cladogram, what derived trait is shared by primates .pdfAccording to the cladogram, what derived trait is shared by primates .pdf
According to the cladogram, what derived trait is shared by primates .pdfAroraRajinder1
 
A male Flagus fly with the Barkus phenotype is crossed with a female.pdf
A male Flagus fly with the Barkus phenotype is crossed with a female.pdfA male Flagus fly with the Barkus phenotype is crossed with a female.pdf
A male Flagus fly with the Barkus phenotype is crossed with a female.pdfAroraRajinder1
 
2015Matthew and Michael Goode (cousins) decide to form a partners.pdf
2015Matthew and Michael Goode (cousins) decide to form a partners.pdf2015Matthew and Michael Goode (cousins) decide to form a partners.pdf
2015Matthew and Michael Goode (cousins) decide to form a partners.pdfAroraRajinder1
 
1. Jose is a Latino client who presents with occupational difficulti.pdf
1. Jose is a Latino client who presents with occupational difficulti.pdf1. Jose is a Latino client who presents with occupational difficulti.pdf
1. Jose is a Latino client who presents with occupational difficulti.pdfAroraRajinder1
 
You have a small business customer who wants to use a voice over IP .pdf
You have a small business customer who wants to use a voice over IP .pdfYou have a small business customer who wants to use a voice over IP .pdf
You have a small business customer who wants to use a voice over IP .pdfAroraRajinder1
 
Why can some microbial species grow and survive in extreme environ.pdf
Why can some microbial species grow and survive in extreme environ.pdfWhy can some microbial species grow and survive in extreme environ.pdf
Why can some microbial species grow and survive in extreme environ.pdfAroraRajinder1
 
Which prokaryotic group maps most closely to the chlorophyll of plan.pdf
Which prokaryotic group maps most closely to the chlorophyll of plan.pdfWhich prokaryotic group maps most closely to the chlorophyll of plan.pdf
Which prokaryotic group maps most closely to the chlorophyll of plan.pdfAroraRajinder1
 
Which of the following static methods allow an ArrayList of strings t.pdf
Which of the following static methods allow an ArrayList of strings t.pdfWhich of the following static methods allow an ArrayList of strings t.pdf
Which of the following static methods allow an ArrayList of strings t.pdfAroraRajinder1
 
Which of the following factors can affect rate of enzyme activitypH.pdf
Which of the following factors can affect rate of enzyme activitypH.pdfWhich of the following factors can affect rate of enzyme activitypH.pdf
Which of the following factors can affect rate of enzyme activitypH.pdfAroraRajinder1
 
Which anchors of synthesis Which are cilia and N Which found in plan.pdf
Which anchors of synthesis Which are cilia and N Which found in plan.pdfWhich anchors of synthesis Which are cilia and N Which found in plan.pdf
Which anchors of synthesis Which are cilia and N Which found in plan.pdfAroraRajinder1
 
What is social welfare policy Why should we study it What is the r.pdf
What is social welfare policy Why should we study it What is the r.pdfWhat is social welfare policy Why should we study it What is the r.pdf
What is social welfare policy Why should we study it What is the r.pdfAroraRajinder1
 

More from AroraRajinder1 (20)

Hint Assume the binary tree is properly balanced (the depth of the .pdf
Hint Assume the binary tree is properly balanced (the depth of the .pdfHint Assume the binary tree is properly balanced (the depth of the .pdf
Hint Assume the binary tree is properly balanced (the depth of the .pdf
 
essay question Explain how everyday life changes for slaves after e.pdf
essay question Explain how everyday life changes for slaves after e.pdfessay question Explain how everyday life changes for slaves after e.pdf
essay question Explain how everyday life changes for slaves after e.pdf
 
Detection versus recognition ... Investigate Face++ at Feel free to.pdf
Detection versus recognition ...  Investigate Face++ at  Feel free to.pdfDetection versus recognition ...  Investigate Face++ at  Feel free to.pdf
Detection versus recognition ... Investigate Face++ at Feel free to.pdf
 
Dent disease is a rare disorder of the kidney in which reabsorption o.pdf
Dent disease is a rare disorder of the kidney in which reabsorption o.pdfDent disease is a rare disorder of the kidney in which reabsorption o.pdf
Dent disease is a rare disorder of the kidney in which reabsorption o.pdf
 
DEFINE maternal determinant (3-4 sentences).SolutionMaternal .pdf
DEFINE maternal determinant (3-4 sentences).SolutionMaternal .pdfDEFINE maternal determinant (3-4 sentences).SolutionMaternal .pdf
DEFINE maternal determinant (3-4 sentences).SolutionMaternal .pdf
 
Consider a partial function.For every unmapped element in its doma.pdf
Consider a partial function.For every unmapped element in its doma.pdfConsider a partial function.For every unmapped element in its doma.pdf
Consider a partial function.For every unmapped element in its doma.pdf
 
Compare and Contrast hollow core fibers for high power delivery an.pdf
Compare and Contrast hollow core fibers for high power delivery an.pdfCompare and Contrast hollow core fibers for high power delivery an.pdf
Compare and Contrast hollow core fibers for high power delivery an.pdf
 
Can we create an object of type Interface Explain your answer.So.pdf
Can we create an object of type Interface Explain your answer.So.pdfCan we create an object of type Interface Explain your answer.So.pdf
Can we create an object of type Interface Explain your answer.So.pdf
 
Cancel QuestionSolutionSince Descriptive statistics uses the d.pdf
Cancel QuestionSolutionSince Descriptive statistics uses the d.pdfCancel QuestionSolutionSince Descriptive statistics uses the d.pdf
Cancel QuestionSolutionSince Descriptive statistics uses the d.pdf
 
According to the cladogram, what derived trait is shared by primates .pdf
According to the cladogram, what derived trait is shared by primates .pdfAccording to the cladogram, what derived trait is shared by primates .pdf
According to the cladogram, what derived trait is shared by primates .pdf
 
A male Flagus fly with the Barkus phenotype is crossed with a female.pdf
A male Flagus fly with the Barkus phenotype is crossed with a female.pdfA male Flagus fly with the Barkus phenotype is crossed with a female.pdf
A male Flagus fly with the Barkus phenotype is crossed with a female.pdf
 
2015Matthew and Michael Goode (cousins) decide to form a partners.pdf
2015Matthew and Michael Goode (cousins) decide to form a partners.pdf2015Matthew and Michael Goode (cousins) decide to form a partners.pdf
2015Matthew and Michael Goode (cousins) decide to form a partners.pdf
 
1. Jose is a Latino client who presents with occupational difficulti.pdf
1. Jose is a Latino client who presents with occupational difficulti.pdf1. Jose is a Latino client who presents with occupational difficulti.pdf
1. Jose is a Latino client who presents with occupational difficulti.pdf
 
You have a small business customer who wants to use a voice over IP .pdf
You have a small business customer who wants to use a voice over IP .pdfYou have a small business customer who wants to use a voice over IP .pdf
You have a small business customer who wants to use a voice over IP .pdf
 
Why can some microbial species grow and survive in extreme environ.pdf
Why can some microbial species grow and survive in extreme environ.pdfWhy can some microbial species grow and survive in extreme environ.pdf
Why can some microbial species grow and survive in extreme environ.pdf
 
Which prokaryotic group maps most closely to the chlorophyll of plan.pdf
Which prokaryotic group maps most closely to the chlorophyll of plan.pdfWhich prokaryotic group maps most closely to the chlorophyll of plan.pdf
Which prokaryotic group maps most closely to the chlorophyll of plan.pdf
 
Which of the following static methods allow an ArrayList of strings t.pdf
Which of the following static methods allow an ArrayList of strings t.pdfWhich of the following static methods allow an ArrayList of strings t.pdf
Which of the following static methods allow an ArrayList of strings t.pdf
 
Which of the following factors can affect rate of enzyme activitypH.pdf
Which of the following factors can affect rate of enzyme activitypH.pdfWhich of the following factors can affect rate of enzyme activitypH.pdf
Which of the following factors can affect rate of enzyme activitypH.pdf
 
Which anchors of synthesis Which are cilia and N Which found in plan.pdf
Which anchors of synthesis Which are cilia and N Which found in plan.pdfWhich anchors of synthesis Which are cilia and N Which found in plan.pdf
Which anchors of synthesis Which are cilia and N Which found in plan.pdf
 
What is social welfare policy Why should we study it What is the r.pdf
What is social welfare policy Why should we study it What is the r.pdfWhat is social welfare policy Why should we study it What is the r.pdf
What is social welfare policy Why should we study it What is the r.pdf
 

Recently uploaded

Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSean M. Fox
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................MirzaAbrarBaig5
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...Gary Wood
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital ManagementMBA Assignment Experts
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesPooky Knightsmith
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppCeline George
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi RajagopalEADTU
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesAmanpreetKaur157993
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project researchCaitlinCummins3
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽中 央社
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024Borja Sotomayor
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....Ritu480198
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFVivekanand Anglo Vedic Academy
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文中 央社
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportDenish Jangid
 

Recently uploaded (20)

Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 

If a function F) performs the following operations, what knd of cohe.pdf

  • 1. If a function F) performs the following operations, what knd of cohesion does it have? If it has the optimal cohesion, explain why. If not, correct it. turn on a LED light; send a message to a remote computer; poll a sensor to get a reading; Solution Cohesion is the term which refers to the degree by which the various elements inside a function are related to each other. In the given list of operations, there is no clear relationship between any of the operations. Turning on the LED light and sending message to a remote computer can be assumed to be a form of signalling or notification. However, polling a sensor is clearly an input operation. Also each of the operations is independent. So, the cohesion in this function is weak. It can be categorized as the coincidental cohesion. It is the worst kind of cohesion. The operations are arbitrarily jammed into the same function without any relationship. The only relationship between them is that all of them are put into the same function. Therefore, the cohesion is weak. It is coincidental and not optimal. --------------------------------------------------------------------------------------------------------------------- - If you have any queries regarding this, please ask in the comments and I will make sure to help you with it.