Which of the following is the best type of module coupling?Select one:a.Control Couplingb.Stamp Couplingc.Data Couplingd.Content Coupling
Question
Which of the following is the best type of module coupling?
Select one:
- a. Control Coupling
- b. Stamp Coupling
- c. Data Coupling
- d. Content Coupling
Solution
To determine the best type of module coupling, let's first understand what each type of coupling means:
-
Control Coupling:
- This occurs when one module controls the behavior of another by passing it information on what to do (e.g., passing a control flag).
- It can lead to a situation where the control logic is spread across multiple modules, making the system harder to understand and maintain.
-
Stamp Coupling:
- This occurs when modules share a composite data structure and use only a part of it.
- It can lead to unnecessary dependencies between modules, as changes in the data structure can affect multiple modules.
-
Data Coupling:
- This occurs when modules share data through, for example, parameters. Each datum is an elementary piece, and the modules are independent of each other.
- This is generally considered a good practice because it minimizes dependencies and makes the system more modular and easier to maintain.
-
Content Coupling:
- This occurs when one module directly accesses or modifies the content of another module.
- This is the highest level of coupling and is generally considered very poor practice because it creates strong dependencies and makes the system very difficult to maintain and understand.
Given these definitions, the best type of module coupling is:
c. Data Coupling
Data coupling is the most desirable because it promotes modularity and reduces dependencies between modules, making the system easier to understand, maintain, and extend.
Similar Questions
Which of the following is the worst type of module coupling?Select one:a.Control Couplingb.Stamp Couplingc.External Couplingd.Content Coupling
Which type of coupling is considered the most desirable?Options :Data CouplingControl CouplingStamp CouplingContent Coupling
The three types of loose coupling are:0 / 1 pointData; Message; Data StructureContent; Common; ExternalControl; Data Structure; LooseData; Message; None
The two types of medium coupling are:1 pointData; MessageControl; Data StructureContent; CommonMessage; None
............................ is a measure of the degree of interdependence between modules.Options :couplingCohesionboth of abovenone of above
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.