Redirected
recategorized by
3,906 views
0 votes
0 votes

Coupling is a measure of the strength of the interconnections between software modules. Which of the following are correct statements with respect to module coupling?

P: Common coupling occurs when one module controls the flow of another module by passing it information on what to do

Q: In data coupling, the complete data structure is passed from one module to another through parameters.

R: Stamp coupling occurs when modules share a composite data structure and use only parts of it.

Code: 

  1. P and Q only
  2. P and R only
  3. Q and R only
  4. All of P, Q and R
recategorized by

3 Answers

2 votes
2 votes

Answer : (3)  Q and R only 

Reason:

Coupling can be applied to many things such as methods (in object oriented design), systems (in systems engineering) and modules (in any kind of organized system including software systems). Coupling is defined as the extent to which a system, subsystem, method or module connects with (depends on) others. In other words, it measures interdependency. It can be measured for a single module or other entity (the extent to which the module/entity can function or be understood without the use of other modules/entities). 
 
Types of Coupling
Various authors have described systems for identifying types of coupling. One of the most widely used for software and systems is Myers’ classification, which defines seven levels of coupling, from tightest to loosest:
  • Content coupling - modules rely on each others’ internal data or internal organization
  • Common coupling - modules share the same global data
  • External coupling - modules share an externally imposed data format, communication protocol or device interface
  • Control coupling - one module controls the flow of another, such as by passing it a flag or other information
  • Stamp coupling - modules share a composite data structure but use different parts of it
  • Data coupling - modules share data through parameters, such as in a subroutine call
  • Message coupling - modules communicate by passing messages.

     

0 votes
0 votes

Option (3) Q and R only is correct.

Common coupling: access to global data.modules bound together by global data structures.

Stamp coupling: similar to common coupling except that global variables are shared selectively among routines that require the data.Pass entire data structure but need only parts of it.

Data coupling: use of parameter lists to pass data items between routines.

Related questions

2 votes
2 votes
3 answers
2
Pooja Khatri asked Jul 13, 2018
2,754 views
Match the following in Software Engineering :$\begin{array}{clcl} &\textbf{List-I}& & \textbf{List-II} \\ \text{(a)}& \text{Product Complexity} & \text{(i)} & \text{Soft...
1 votes
1 votes
4 answers
3
Pooja Khatri asked Jul 13, 2018
1,733 views
Which one of the following is not typically provided by Source Code Management Software?SynchronizationVersioning and Revision historySyntax highlightingProject forking
0 votes
0 votes
3 answers
4
Pooja Khatri asked Jul 13, 2018
1,998 views
A software system crashed 20 times in the year 2017 and for each crash, it took 2 minutes to restart. Approximately, what was the software availability in that year?96.99...