Question 6Which of the following is most preferred?1 pointAllowing one module to affect the program flow of another via the use of a flag (control coupling)Having two modules rely on the same global information structure (common coupling)Having more than one module rely on the same version of the RSS standard (external coupling)Allowing one module to affect the program flow of another via the use of a state message (message coupling)
Question
Question 6Which of the following is most preferred?1 pointAllowing one module to affect the program flow of another via the use of a flag (control coupling)Having two modules rely on the same global information structure (common coupling)Having more than one module rely on the same version of the RSS standard (external coupling)Allowing one module to affect the program flow of another via the use of a state message (message coupling)
Solution
The most preferred among the options given is "Allowing one module to affect the program flow of another via the use of a state message (message coupling)".
Here's why:
-
Control coupling: This is not preferred because it can lead to high interdependence between modules, making the system harder to manage and modify.
-
Common coupling: This is also not preferred because it can lead to high interdependence between modules. If the global information structure changes, it can affect all modules that rely on it.
-
External coupling: This is not preferred because it can lead to problems if the external standard changes. All modules that rely on the same version of the RSS standard would need to be updated.
-
Message coupling: This is the most preferred option. It allows one module to affect the program flow of another via the use of a state message. This type of coupling is loose and allows for better modularity and easier management of the system. It also makes the system more flexible and easier to modify.
Similar Questions
Which of the following is the best type of module coupling?Select one:a.Control Couplingb.Stamp Couplingc.Data Couplingd.Content Coupling
Which of the following is the worst type of module coupling?Select one:a.Control Couplingb.Stamp Couplingc.External Couplingd.Content Coupling
Which of the following is the best type of module coupling?Options :commonstampcontrolnone of above
In a particular software system, Module A calls Module B to perform a specific task. Module B, in turn, calls Module C to complete its operation. What type of coupling is observed in this situation?*DataControlStampCommon
Question 9Module A controls the logical flow of module B. This is an example of what type of coupling?1 pointMedium data structure couplingMedium control coupling
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.