retagged by
14,170 views
1 votes
1 votes

The coupling between different modules of a software is categorized as follows:

  1. Content coupling
  2. Common coupling
  3. Control coupling
  4. Stamp coupling
  5. Data coupling

Coupling between modules can be ranked in the order of strongest (least desirable) to weakest (most desirable) as follows:

  1. I-II-III-IV-V
  2. V-IV-III-II-I
  3. I-III-V-II-IV
  4. IV-II-V-III-I
retagged by

3 Answers

Best answer
4 votes
4 votes
Answer: A

Coupling between modules can be ranked in the order of strongest (least desirable) to weakest (most desirable) as follows: Content Coupling, Common Coupling, External Coupling, Control Coupling, Stamp Coupling, Data Coupling.
selected by
2 votes
2 votes

Answer A

Coupling between modules can be ranked in the order of strongest to weakest as follows:

Content Coupling $>$ Common Coupling $>$ External Coupling $>$ Control Coupling $>$ Stamp Coupling $>$ Data Coupling

  • Content Coupling: Occurs when one module modifies or relies on the internal workings of another module
  • Common Coupling: Occurs when two modules share the same global data
  • External Coupling: Occurs when two modules share an externally imposed data format or communication protocol
  • Control Coupling: One module controlling the flow of another, by passing it information
  • Stamp Coupling: Occurs when modules share a composite data structure and use only parts of it
  • Data coupling: Occurs when modules share data through parameters

Source: https://en.wikipedia.org/wiki/Coupling_(computer_programming)

1 votes
1 votes

Ranked highest to lowest:

  1. Content coupling: if one directly references the contents of the other.

    When one module modifies local data values or instructions in another module. (can happen in assembly language)

    if one refers to local data in another module.

    if one branches into a local label of another.

  2. Common coupling: access to global data.

    modules bound together by global data structures.

  3. Control coupling: passing control flags (as parameters or globals) so that one module controls the sequence of processing steps in another module.
  4. Stamp coupling: similar to common coupling except that global variables are shared selectively among routines that require the data. E.g., packages in Ada. More desirable than common coupling because fewer modules will have to be modified if a shared data structure is modified. Pass entire data structure but need only parts of it.
  5. Data coupling: use of parameter lists to pass data items between routines.

so, ans A

ref: https://courses.cs.washington.edu/courses/cse403/96sp/coupling-cohesion.html

Answer:

Related questions

8.3k
views
2 answers
11 votes
Kathleen asked Sep 22, 2014
8,313 views
Which of the following statements are TRUE?The context diagram should depict the system as a single bubble.External entities should be identified clearly at all levels of ... to an external entity.II and IIIII and IIII and IIII, II and III
5.0k
views
1 answers
5 votes
Kathleen asked Sep 22, 2014
5,043 views
Consider the following statements about the cyclomatic complexity of the control flow graph of a program module. Which of these are TRUE? The cyclomatic complexity of a ... path coverage testing.I and IIII and IIII and IIII, II and III
10.9k
views
5 answers
34 votes
go_editor asked Apr 23, 2016
10,903 views
A hard disk has $63$ sectors per track, $10$ platters each with $2$ recording surfaces and $1000$ ... $\langle 0, 17, 31 \rangle$
15.0k
views
3 answers
47 votes
go_editor asked Apr 23, 2016
14,967 views
A sub-sequence of a given sequence is just the given sequence with some elements (possibly none or all) left out. We are given two sequences $X[m]$ and $Y[n]$ of lengths $m$ ... to be computed before $L[r, s]$ if either $p<r$ or $q < s$.