CS FundamentalsHardGATE CS · Infosys

Module A passes an entire customer record (a composite structure) to module B, but B uses only the customer ID field. This is an example of:

  1. A. Data coupling
  2. B. Control coupling
  3. C. Stamp coupling
  4. D. Common coupling

Correct answer: C. Stamp coupling

Passing a composite data structure when only part of it is needed is stamp (data-structured) coupling. Data coupling passes only the needed elementary values, control coupling passes a flag that steers the callee's logic, and common coupling shares global data.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic