Subjects
Applied Mathematics for Electrical Engineering - 3130908
Complex Variables and Partial Differential Equations - 3130005
Engineering Graphics and Design - 3110013
Basic Electronics - 3110016
Mathematics-II - 3110015
Basic Civil Engineering - 3110004
Physics Group - II - 3110018
Basic Electrical Engineering - 3110005
Basic Mechanical Engineering - 3110006
Programming for Problem Solving - 3110003
Physics Group - I - 3110011
Mathematics-I - 3110014
English - 3110002
Environmental Science - 3110007
Software Engineering - 2160701
Data Structure - 2130702
Database Management Systems - 2130703
Operating System - 2140702
Advanced Java - 2160707
Compiler Design - 2170701
Data Mining And Business Intelligence - 2170715
Information And Network Security - 2170709
Mobile Computing And Wireless Communication - 2170710
Theory Of Computation - 2160704
Semester
Semester - 1
Semester - 2
Semester - 3
Semester - 4
Semester - 5
Semester - 6
Semester - 7
Semester - 8
Software Engineering
(2160701)
SE-2160701
Winter-2017
Question-3b-OR
BE | Semester-
6
Winter-2017
|
11/03/2017
Q3) (b)
4 Marks
Compare Coupling and Cohesion. Explain different types of Coupling and its effects on software modules
Cohesion
Coupling
Cohesion is the indication of the relationship within module.
Coupling is the indication of the relationships between modules
Cohesion shows the module’s relative functional strength.
Coupling shows the relative independence among the modules.
Cohesion is Intra – Module Concept.
Coupling is Inter -Module Concept.
While designing you should strive for high cohesion i.e. a cohesive component/ module focus on a single task
While designing you should strive for low coupling i.e. dependency between modules should be less.
Classification of Coupling
Data coupling
Two modules are data coupled, if they communicate through a parameter.
An example is an elementary (primal) data item passed as a parameter between two modules, e.g. an integer, a float, a character, etc.
Stamp coupling
This is a special case (or extension) of data coupling
Two modules (``A'' and ``B'') exhibit stamp coupling if one passes directly to the other a composite data item - such as a record (or structure), array, or (pointer to) a list or tree.
This occurs when Class B is declared as a type for an argument of an operation of ClassA
Control coupling
If data from one module is used to direct the order of instructions execution in another.
An example of control coupling is a flag set in one module and tested in another module.
Common coupling
Two modules are common coupled, if they share data through some global data items.
Common coupling can leads to uncontrolled error propagation and unforeseen side effects when changes are made.
Content coupling
Content coupling occurs when one component secretly modifies data that is internal to another component.
This violets information hiding – a basic design concept
Content coupling exists between two modules, if they share code.
Questions
Go to Question Paper
Q1
(a)
(b)
(c)
Q2
(a)
(b)
(c)
(c)
(OR)
Q3
(a)
(b)
(c)
Q3
(a)
(OR)
(b)
(OR)
(c)
(OR)
Q4
(a)
(b)
(c)
Q4
(a)
(OR)
(b)
(OR)
(c)
(OR)
Q5
(a)
(b)
(c)
Q5
(a)
(OR)
(b)
(OR)
(c)
(OR)