CS FundamentalsModerateCognizant · Capgemini pattern
Arrange these types of module coupling from WORST (tightest) to BEST (loosest).
- A. Data → Stamp → Control → Common → Content
- B. Common → Content → Control → Data → Stamp
- C. Content → Common → Control → Stamp → Data
- D. Content → Control → Common → Stamp → Data
Correct answer: C. Content → Common → Control → Stamp → Data
Content coupling (one module reaching into another's internals) is worst, then common (shared global data), control (passing flags that steer the other module's logic), stamp (passing a whole structure when only part is needed), and data coupling (passing only needed values) is best.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- What is the cyclomatic complexity of this function, counting the conditional expression and the except clause as decisions? python def…
- How many of the following are white-box (structural) testing techniques? 1. Branch (decision) coverage 2. Basis path testing 3. Boundary…
- You cherry-pick commit X from branch feature onto main. Which statement is correct?
- git push origin main is rejected with a 'non-fast-forward' error. What does it mean, and what is the correct fix on a shared branch?
- Which document records what a system must do — its functional and non-functional requirements — as agreed with the client before design…
- Before a sale, a team checks that its shopping site still responds well with 10,000 concurrent users, the expected peak. Which type of…