Levels of Coupling: Data, Stamp, Control, Common, Content Coupling Notes in Hindi & English : कपलिंग के 5 स्तर: डेटा कपलिंग (सर्वोत्तम) से कंटेंट कपलिंग (खराब) और 20 महत्वपूर्ण MCQ प्रश्न (Rajasthan IT Exam)

Post a Comment

PGDCA, BCA, B-Tech, MCA, M-Tech, B.Sc computer science राजस्थान सूचना सहायक व कंप्यूटर शिक्षक विशेष नोट्स: इस अध्याय में हम Levels of Coupling: Data, Stamp, Control, Common, Content Coupling (कपलिंग के 5 स्तर: डेटा कपलिंग (सर्वोत्तम) से कंटेंट कपलिंग (खराब)) की संपूर्ण थ्योरी, मुख्य तकनीकी बिंदु, तुलनात्मक तालिका और विगत परीक्षाओं के पैटर्न पर आधारित 20 अति-महत्वपूर्ण बहुविकल्पीय प्रश्न (MCQs) विस्तृत हिंदी व अंग्रेजी व्याख्या सहित पढ़ेंगे।

Overview: Structured design classifies inter-module coupling along a quality spectrum from loosest (best) to tightest (worst) across five primary levels: Data, Stamp, Control, Common, and Content coupling. Preferring Data coupling while eliminating Common and Content coupling prevents hidden side effects and keeps modules independently verifiable.

अध्याय सार: स्ट्रक्चर्ड डिज़ाइन में मॉड्यूल्स के मध्य कपलिंग को सर्वोत्तम (सबसे ढीली) से सबसे खराब (सबसे सख्त) के क्रम में पांच मुख्य स्तरों—डेटा, स्टैम्प, कंट्रोल, कॉमन और कंटेंट कपलिंग—में वर्गीकृत किया जाता है। कॉमन और कंटेंट कपलिंग से बचते हुए डेटा कपलिंग का चयन करने से अनचाहे साइड इफेक्ट रुकते हैं और मॉड्यूल्स स्वतंत्र रहते हैं।

Levels of Coupling: Data, Stamp, Control, Common, Content Coupling: Detailed Notes & Architecture (कपलिंग के 5 स्तर: डेटा कपलिंग (सर्वोत्तम) से कंटेंट कपलिंग (खराब))

1. Data Coupling and Stamp (Bundle) Coupling (डेटा कपलिंग और स्टैम्प (बंडल) कपलिंग)

[EN] Data Coupling (best among the classic five) occurs when modules communicate exclusively by passing elementary primitive data items needed for computation, such as passing `rate` and `hours` to `calcPay(rate, hours)`. Stamp Coupling (data-structured coupling) passes a composite record or struct when the called module uses only a subset of its fields, such as passing an entire `Employee` record to extract only `joinDate`. Stamp coupling creates unnecessary dependency on unused fields and exposes extra structure.

[HI] डेटा कपलिंग (पांच मुख्य स्तरों में सर्वोत्तम) तब होती है जब मॉड्यूल्स केवल गणना के लिए आवश्यक सरल डेटा आइटम्स ही पास करते हैं, जैसे `calcPay(rate, hours)`। स्टैम्प कपलिंग में कॉलर एक पूरा कंपोजिट रिकॉर्ड या स्ट्रक्चर भेजता है जबकि कॉली उसके केवल कुछ ही फ़ील्ड का उपयोग करता है, जैसे पूरे `Employee` ऑब्जेक्ट से केवल `joinDate` पढ़ना। इससे अप्रयुक्त फ़ील्ड्स पर भी अनावश्यक निर्भरता बन जाती है।

2. Control Coupling and Behavioral Flags (कंट्रोल कपलिंग और कंट्रोल फ्लैग्स)

[EN] Control Coupling happens when one module passes a control flag, switch, or operation code that dictates the internal execution branch of the receiving module, such as `sortList(data, isDescendingFlag)` or `renderReport(rows, outputMode)`. To pass the right flag, the caller must understand the internal control logic of the callee, violating encapsulation. Refactoring control-coupled functions into separate explicit functions (e.g., `sortAsc()` and `sortDesc()`) lowers coupling back to Data coupling.

[HI] कंट्रोल कपलिंग तब होती है जब एक मॉड्यूल दूसरे मॉड्यूल को कोई कंट्रोल फ्लैग, स्विच या मोड कोड भेजता है जो दूसरे मॉड्यूल के आंतरिक निष्पादन पथ को नियंत्रित करता है, जैसे `sortList(data, isDescendingFlag)`। सही फ्लैग भेजने के लिए कॉलर को कॉली के आंतरिक लॉजिक की जानकारी रखनी पड़ती है। ऐसे फ़ंक्शन को अलग-अलग स्पष्ट फ़ंक्शंस (जैसे `sortAsc()` और `sortDesc()`) में तोड़कर कपलिंग को डेटा स्तर पर लाया जा सकता है।

3. Common Coupling and External Coupling (कॉमन कपलिंग और एक्सटर्नल कपलिंग)

[EN] Common Coupling arises when two or more modules share read-write access to the same global variables or shared memory pool (e.g., Fortran `COMMON` blocks or C `extern` globals). Because any module can mutate global state at any time, tracing unexpected value corruption becomes notoriously difficult, and reusing one module forces dragging along the entire global pool. In extended taxonomies, External Coupling occurs when modules depend on an externally imposed data format, communication protocol, or hardware I/O port.

[HI] कॉमन कपलिंग तब उत्पन्न होती है जब दो या अधिक मॉड्यूल्स एक ही ग्लोबल वेरिएबल या साझा मेमोरी क्षेत्र (जैसे Fortran का `COMMON` ब्लॉक या C के `extern` ग्लोबल्स) को पढ़ते और बदलते हैं। कोई भी मॉड्यूल कभी भी ग्लोबल डेटा बदल सकता है, जिससे बग ट्रेस करना अत्यंत कठिन हो जाता है। विस्तारित वर्गीकरण में एक्सटर्नल कपलिंग तब होती है जब मॉड्यूल्स किसी बाहरी डेटा प्रारूप, प्रोटोकॉल या हार्डवेयर डिवाइस इंटरफेस पर निर्भर हों।

4. Content (Pathological) Coupling and Spectrum Summary (कंटेंट (पैथोलॉजिकल) कपलिंग और पूर्ण क्रम)

[EN] Content Coupling (also called Pathological Coupling) is the worst level: one module directly accesses, modifies, or branches into the private internal code or local variables of another module. Examples include assembly `GOTO`/`JMP` statements jumping into the middle of another routine, modifying another function's instructions at runtime, or bypassing private visibility via raw pointer arithmetic or invasive reflection. Ranked from best to worst across the standard five levels: Data < Stamp < Control < Common < Content (with No Direct/Message coupling even looser than Data).

[HI] कंटेंट कपलिंग (जिसे पैथोलॉजिकल कपलिंग भी कहते हैं) सबसे खराब स्तर है, जिसमें एक मॉड्यूल दूसरे मॉड्यूल के आंतरिक कोड, लोकल वेरिएबल्स या निष्पादन बिंदु में सीधा हस्तक्षेप करता है। इसके उदाहरण किसी रूटीन के बीच में `GOTO`/`JMP` करना या प्राइवेट वेरिएबल को पॉइंटर/रिफ्लेक्शन से सीधे बदलना है। सर्वोत्तम से सबसे खराब तक 5 मानक स्तरों का क्रम है: डेटा < स्टैम्प < कंट्रोल < कॉमन < कंटेंट।

Syntax, Formula & Technical Example (Levels of Coupling: Data, Stamp, Control, Common, Content Coupling)

/* Ranking Coupling Levels in C-Style Pseudocode (Best -> Worst) */
float calcTax(float income) { return income * 0.1f; }           /* 1. Data: primitive only */
void  printZip(struct Address addr) { show(addr.zip); }       /* 2. Stamp: unused fields in struct */
void  exportData(int rows[], int formatFlag) { /* if-else */ }/* 3. Control: flag drives logic */
extern int globalCounter; void inc() { globalCounter++; }     /* 4. Common: shared global state */
/* 5. Content: jumping into middle of another routine or mutating local private memory */

Levels of Coupling: Data, Stamp, Control, Common, Content Coupling Quick Reference & Comparison Table

Coupling LevelPrimary Coupling MechanismQuality Rank & Exam Fact
Data CouplingPasses only required primitive/elementary parametersBest of the 5 classic levels; highest modularity
Stamp CouplingPasses entire composite record/struct for partial useMedium-low; leaks unused structure dependencies
Control CouplingPasses flags or switches dictating callee branchesMedium-high; forces caller to know callee modes
Content CouplingDirectly alters or branches into another module's internalsWorst (Pathological); breaks encapsulation completely

Levels of Coupling: Data, Stamp, Control, Common, Content Coupling Top 20 Bilingual MCQs with Answers

Q1. Which sequence correctly orders the five classic levels of coupling from BEST (loosest) to WORST (tightest)?

(कपलिंग के पांच मानक स्तरों का सर्वोत्तम (ढीली) से सबसे खराब (सख्त) का सही क्रम कौन सा है?)

(A) Content -> Common -> Control -> Stamp -> Data

(B) Data -> Stamp -> Control -> Common -> Content

(C) Data -> Control -> Stamp -> Content -> Common

(D) Stamp -> Data -> Common -> Control -> Content

Correct Answer: (B)

[EN] Data coupling is the cleanest among the five levels, progressing down through Stamp, Control, and Common to Content coupling.

[HI] डेटा कपलिंग पांच स्तरों में सर्वोत्तम है, जिसके बाद क्रमशः स्टैम्प, कंट्रोल, कॉमन और अंत में सबसे खराब कंटेंट कपलिंग आती है।

Q2. Passing an entire 'Student' object to a function 'getAge(Student s)' that only reads 's.dob' exemplifies which coupling level?

(किसी फ़ंक्शन 'getAge(Student s)' को पूरा 'Student' ऑब्जेक्ट भेजना जबकि वह केवल 's.dob' का उपयोग करता है, किस कपलिंग का उदाहरण है?)

(A) Content Coupling

(B) Data Coupling

(C) Stamp Coupling

(D) Common Coupling

Correct Answer: (C)

[EN] Stamp coupling occurs when a composite data structure is passed even though the receiver uses only a subset of its fields.

[HI] जब पूरा कंपोजिट डेटा स्ट्रक्चर भेजा जाए और प्राप्तकर्ता मॉड्यूल उसके केवल कुछ ही फ़ील्ड उपयोग करे, तो उसे स्टैम्प कपलिंग कहते हैं।

Q3. If Module A invokes 'generateReport(records, printAsPdfFlag)' where 'printAsPdfFlag' controls internal branching, what coupling exists?

(यदि मॉड्यूल A 'generateReport(records, printAsPdfFlag)' कॉल करता है जहाँ फ्लैग आंतरिक ब्रांचिंग तय करता है, तो यह कौन सी कपलिंग है?)

(A) Data Coupling

(B) Content Coupling

(C) Common Coupling

(D) Control Coupling

Correct Answer: (D)

[EN] Passing a flag or mode switch to control the execution flow of another module defines Control coupling.

[HI] दूसरे मॉड्यूल के निष्पादन प्रवाह को नियंत्रित करने के लिए फ्लैग या स्विच भेजना कंट्रोल कपलिंग कहलाता है।

Q4. Which coupling level occurs when multiple modules read and modify the same global variable?

(जब कई मॉड्यूल्स एक ही ग्लोबल वेरिएबल को पढ़ते और उसमें बदलाव करते हैं, तो कौन सी कपलिंग होती है?)

(A) Control Coupling

(B) Data Coupling

(C) Common Coupling

(D) Stamp Coupling

Correct Answer: (C)

[EN] Common coupling binds modules through a shared global data area, making state changes difficult to trace.

[HI] कॉमन कपलिंग में अनेक मॉड्यूल्स एक साझा ग्लोबल डेटा क्षेत्र से जुड़ते हैं, जिससे बदलावों को ट्रेस करना कठिन होता है।

Q5. One routine branching directly into the middle of another routine's code via GOTO or altering its local variables represents:

(एक रूटीन द्वारा GOTO से सीधे दूसरे रूटीन के बीच में जंप करना या उसके लोकल वेरिएबल बदलना किसका उदाहरण है?)

(A) Content (Pathological) Coupling

(B) Stamp Coupling

(C) Data Coupling

(D) External Coupling

Correct Answer: (A)

[EN] Content coupling violates module boundaries entirely by reaching directly into another module's internal logic or memory.

[HI] कंटेंट कपलिंग दूसरे मॉड्यूल के आंतरिक कोड या डेटा में सीधा हस्तक्षेप कर मॉड्यूल सीमा को पूरी तरह तोड़ देती है।

Q6. Which of the classic five coupling levels is the MOST desirable in software engineering?

(सॉफ्टवेयर इंजीनियरिंग में पांच मानक कपलिंग स्तरों में से सबसे अधिक वांछनीय (Desirable) कौन सा है?)

(A) Common Coupling

(B) Control Coupling

(C) Data Coupling

(D) Content Coupling

Correct Answer: (C)

[EN] Data coupling restricts communication strictly to necessary primitive data items, maximizing isolation and reuse.

[HI] डेटा कपलिंग संचार को केवल आवश्यक प्रारंभिक डेटा तक सीमित रखती है, जिससे सर्वाधिक स्वतंत्रता और पुन: उपयोग मिलता है।

Q7. What coupling occurs when two modules depend on the same externally imposed device protocol or file format?

(जब दो मॉड्यूल्स किसी बाहरी डिवाइस प्रोटोकॉल या मानक फ़ाइल फ़ॉर्मेट पर निर्भर होते हैं, तो कौन सी कपलिंग होती है?)

(A) External Coupling

(B) Data Coupling

(C) Stamp Coupling

(D) Content Coupling

Correct Answer: (A)

[EN] External coupling ties modules to shared external artifacts such as OS interfaces, network formats, or hardware ports.

[HI] एक्सटर्नल कपलिंग मॉड्यूल्स को किसी बाहरी मानक फ़ॉर्मेट, संचार प्रोटोकॉल या हार्डवेयर पोर्ट से जोड़ती है।

Q8. How can a developer eliminate Control Coupling in 'process(data, mode)'?

(एक डेवलपर 'process(data, mode)' में मौजूद कंट्रोल कपलिंग को कैसे समाप्त कर सकता है?)

(A) Wrap 'data' and 'mode' inside a 20-field god struct

(B) Move 'mode' into a global variable shared across all files

(C) Split it into distinct single-purpose functions such as saveDraft(data) and publish(data)

(D) Use a GOTO label inside 'process' from the caller

Correct Answer: (C)

[EN] Splitting conditional flag-driven behavior into explicit single-purpose routines removes control flags and improves cohesion too.

[HI] फ्लैग-आधारित व्यवहार को अलग-अलग स्पष्ट फ़ंक्शंस में विभाजित करने से कंट्रोल फ्लैग समाप्त हो जाते हैं और कोहेजन भी सुधरता है।

Q9. Why is Stamp Coupling considered slightly worse than Data Coupling?

(स्टैम्प कपलिंग को डेटा कपलिंग की तुलना में थोड़ा कमज़ोर क्यों माना जाता है?)

(A) Stamp coupling refuses to accept primitive arguments

(B) Stamp coupling allows the callee to jump into caller instructions

(C) Stamp coupling always relies on global memory blocks

(D) Changing an unused field in the passed structure can force recompilation or break the callee

Correct Answer: (D)

[EN] Even if the callee ignores half the struct fields, it remains coupled to the composite structure's definition and layout.

[HI] भले ही कॉली स्ट्रक्चर के आधे फ़ील्ड न पढ़े, फिर भी वह उस पूरे स्ट्रक्चर की परिभाषा में बदलाव से प्रभावित हो सकता है।

Q10. In older Fortran programs, using a shared 'COMMON' block across multiple subroutines is the historical origin of which term?

(पुराने Fortran प्रोग्राम्स में सबरूटीन्स के बीच साझा 'COMMON' ब्लॉक का उपयोग किस कपलिंग शब्द का ऐतिहासिक स्रोत है?)

(A) Content Coupling

(B) Message Coupling

(C) Common Coupling

(D) Control Coupling

Correct Answer: (C)

[EN] Common coupling literally got its name from Fortran's COMMON shared-memory storage declarations.

[HI] कॉमन कपलिंग का नाम वास्तव में Fortran के साझा मेमोरी 'COMMON' ब्लॉक के उपयोग से पड़ा है।

Q11. Which form of coupling in extended object-oriented taxonomies is considered even looser than Data Coupling?

(विस्तारित ऑब्जेक्ट-ओरिएंटेड वर्गीकरण में कौन सी कपलिंग डेटा कपलिंग से भी अधिक ढीली (Loose) मानी जाती है?)

(A) Control Coupling

(B) Pathological Coupling

(C) Common Coupling

(D) Message Coupling (or No Direct Coupling)

Correct Answer: (D)

[EN] In message coupling, components share no state and only exchange parameterless triggers or asynchronous messages.

[HI] मैसेज कपलिंग में घटक कोई डेटा साझा नहीं करते और केवल बिना पैरामीटर के संदेश या इवेंट भेजते हैं।

Q12. Suppose Module P modifies the runtime bytecode instructions inside Module Q. Which coupling is this?

(मान लीजिए मॉड्यूल P रनटाइम पर मॉड्यूल Q के बाइटकोड निर्देशों को संशोधित करता है। यह कौन सी कपलिंग है?)

(A) External Coupling

(B) Stamp Coupling

(C) Common Coupling

(D) Content Coupling

Correct Answer: (D)

[EN] Self-modifying or cross-modifying module internals is a textbook instance of pathological Content coupling.

[HI] किसी अन्य मॉड्यूल के आंतरिक निर्देशों को सीधे बदलना कंटेंट (पैथोलॉजिकल) कपलिंग का स्पष्ट उदाहरण है।

Q13. What major maintenance risk arises from Common Coupling in a multi-threaded server?

(मल्टी-थ्रेडेड सर्वर में कॉमन कपलिंग से कौन सा बड़ा रखरखाव और बग जोखिम उत्पन्न होता है?)

(A) Reduction in RAM consumption

(B) Automatic decoupling of all modules

(C) Guaranteed compile-time type safety

(D) Race conditions and untraceable global state corruption across modules

Correct Answer: (D)

[EN] Concurrent writes to shared global data without strict ownership cause non-deterministic race conditions.

[HI] बिना स्वामित्व के साझा ग्लोबल डेटा पर एक साथ लेखन से रेस कंडीशन और अनियंत्रित डेटा भ्रष्टाचार होता है।

Q14. A function 'calcArea(int length, int width)' returning 'length * width' exhibits which coupling level?

(फ़ंक्शन 'calcArea(int length, int width)' जो 'length * width' लौटाता है, किस कपलिंग स्तर को दर्शाता है?)

(A) Data Coupling

(B) Stamp Coupling

(C) Control Coupling

(D) Content Coupling

Correct Answer: (A)

[EN] Every argument passed is a primitive datum directly required for the calculation, representing ideal Data coupling.

[HI] इसमें केवल गणना के लिए आवश्यक दो सरल पैरामीटर भेजे गए हैं, जो आदर्श डेटा कपलिंग है।

Q15. Why does Control Coupling reduce the caller's abstraction?

(कंट्रोल कपलिंग कॉलर मॉड्यूल के एब्स्ट्रैक्शन को क्यों कम करती है?)

(A) The compiler merges both modules into a single loop

(B) The caller must know what internal execution paths correspond to each flag value

(C) The callee automatically erases global variables

(D) The caller cannot pass integers as parameters

Correct Answer: (B)

[EN] Because flag values encode internal branches, the caller ends up dictating how the callee operates rather than what it should do.

[HI] फ्लैग मान आंतरिक शाखाओं को नियंत्रित करते हैं, इसलिए कॉलर को यह जानना पड़ता है कि कॉली अंदर से कैसे काम करेगा।

Q16. Which statement regarding the levels of coupling is NOT true?

(कपलिंग के स्तरों के बारे में निम्नलिखित में से कौन सा कथन सत्य नहीं (NOT true) है?)

(A) Data coupling is superior to Stamp coupling when only two primitive values are needed

(B) Common coupling makes unit isolation difficult due to global dependencies

(C) Control coupling involves passing flags that steer callee decision logic

(D) Content coupling is preferred over Data coupling because it improves execution security

Correct Answer: (D)

[EN] Content coupling is the worst and most dangerous coupling level; it compromises security, readability, and maintainability.

[HI] कंटेंट कपलिंग सबसे खराब और जोखिमपूर्ण स्तर है; डेटा कपलिंग ही सुरक्षा, पठनीयता और रखरखाव के लिए सर्वोत्तम होती है।

Q17. Within Levels of Coupling: Data, Stamp, Control, Common, Content Coupling, which coupling level directly maps to: "Passes only required primitive/elementary parameters"?

(Levels of Coupling: Data, Stamp, Control, Common, Content Coupling में कौन सा Coupling Level सीधे "Passes only required primitive/elementary parameters" से संबंधित है?)

(A) Stamp Coupling

(B) Data Coupling

(C) Content Coupling

(D) Control Coupling

Correct Answer: (B)

[EN] In Levels of Coupling: Data, Stamp, Control, Common, Content Coupling, 'Data Coupling' handles 'Passes only required primitive/elementary parameters' (Best of the 5 classic levels; highest modularity).

[HI] Levels of Coupling: Data, Stamp, Control, Common, Content Coupling में 'Data Coupling' का कार्य/विवरण 'Passes only required primitive/elementary parameters' (Best of the 5 classic levels; highest modularity) है।

Q18. Which option accurately describes 'Stamp Coupling' in Levels of Coupling: Data, Stamp, Control, Common, Content Coupling?

(Levels of Coupling: Data, Stamp, Control, Common, Content Coupling के संदर्भ में 'Stamp Coupling' की सही विशेषता कौन सी है?)

(A) Directly alters or branches into another module's internals

(B) Passes flags or switches dictating callee branches

(C) Passes entire composite record/struct for partial use

(D) Passes only required primitive/elementary parameters

Correct Answer: (C)

[EN] 'Stamp Coupling' provides 'Passes entire composite record/struct for partial use' — key point: Medium-low; leaks unused structure dependencies.

[HI] 'Stamp Coupling' का मुख्य विवरण 'Passes entire composite record/struct for partial use' है (Medium-low; leaks unused structure dependencies)।

Q19. In Levels of Coupling: Data, Stamp, Control, Common, Content Coupling, identify the correct parameter for the specification: "Passes flags or switches dictating callee branches".

(Levels of Coupling: Data, Stamp, Control, Common, Content Coupling में "Passes flags or switches dictating callee branches" विवरण किस विकल्प के लिए सही है?)

(A) Data Coupling

(B) Stamp Coupling

(C) Content Coupling

(D) Control Coupling

Correct Answer: (D)

[EN] 'Control Coupling' corresponds to 'Passes flags or switches dictating callee branches' (Medium-high; forces caller to know callee modes).

[HI] 'Control Coupling' का संबंध 'Passes flags or switches dictating callee branches' (Medium-high; forces caller to know callee modes) से है।

Q20. Considering Levels of Coupling: Data, Stamp, Control, Common, Content Coupling, what key behavior defines 'Content Coupling'?

(Levels of Coupling: Data, Stamp, Control, Common, Content Coupling में 'Content Coupling' की मुख्य भूमिका या मान क्या है?)

(A) Passes flags or switches dictating callee branches

(B) Directly alters or branches into another module's internals

(C) Passes only required primitive/elementary parameters

(D) Passes entire composite record/struct for partial use

Correct Answer: (B)

[EN] 'Content Coupling' represents 'Directly alters or branches into another module's internals' (Worst (Pathological); breaks encapsulation completely).

[HI] 'Content Coupling' का अर्थ/मान 'Directly alters or branches into another module's internals' है (Worst (Pathological); breaks encapsulation completely)।

Levels of Coupling: Data, Stamp, Control, Common, Content Coupling — Exam FAQs

Q1: When is Stamp Coupling acceptable in real-world engineering?

व्यावहारिक सॉफ्टवेयर इंजीनियरिंग में स्टैम्प कपलिंग कब स्वीकार्य मानी जाती है?

[EN] When passing a cohesive domain DTO or configuration object improves readability over passing 8 separate primitive arguments, provided the struct is immutable and stable.

[HI] जब 8 अलग-अलग प्रिमिटिव पैरामीटर्स की तुलना में एक स्थिर और अपरिवर्तनीय (Immutable) डोमेन DTO या कॉन्फ़िगरेशन ऑब्जेक्ट भेजना कोड को अधिक पठनीय बनाता है।

Q2: Is returning an error code from a function considered Control Coupling?

क्या किसी फ़ंक्शन से एरर कोड लौटाना कंट्रोल कपलिंग माना जाता है?

[EN] Only when the caller explicitly passes an inward control switch dictating internal behavior is it classic Control coupling. Returning a status result outward is normal data flow, though exceptions are often cleaner.

[HI] क्लासिक कंट्रोल कपलिंग तब होती है जब कॉलर अंदर की कार्यप्रणाली बदलने वाला फ्लैग भेजे। बाहर की ओर स्टेटस लौटाना सामान्य डेटा प्रवाह है, यद्यपि आधुनिक कोड में एक्सेप्शन बेहतर रहते हैं।

Q3: How do modern languages like Java or Python prevent Content Coupling?

Java या Python जैसी आधुनिक भाषाएं कंटेंट कपलिंग को कैसे रोकती हैं?

[EN] Structured programming eliminates arbitrary cross-function GOTOs, while access modifiers (private/protected) and module boundaries restrict direct access to another module's internal state.

[HI] स्ट्रक्चर्ड प्रोग्रामिंग क्रॉस-फ़ंक्शन GOTO को हटाती है, जबकि एक्सेस मॉडिफ़ायर्स (private/protected) और मॉड्यूल स्कोप बाहरी कोड द्वारा आंतरिक डेटा में सीधे हस्तक्षेप को रोकते हैं।

Related Posts

  • Loading related posts...

Post a Comment

Search Topic Notes & 20 MCQs (Hindi / English)