Bird
0
0

Which of the following best explains how behavioral patterns reduce communication complexity?

easy🧠 Conceptual Q2 of 15
LLD - Behavioral Design Patterns — Part 2
Which of the following best explains how behavioral patterns reduce communication complexity?
ABy duplicating communication logic in each component
BBy increasing the number of messages sent between objects
CBy centralizing control and reducing direct dependencies
DBy removing all communication between components
Step-by-Step Solution
Solution:
  1. Step 1: Analyze communication complexity

    Complex communication arises from many direct dependencies between components.
  2. Step 2: Understand behavioral patterns' role

    They often centralize control (e.g., Mediator) to reduce direct dependencies and simplify communication.
  3. Final Answer:

    By centralizing control and reducing direct dependencies -> Option C
  4. Quick Check:

    Behavioral patterns reduce complexity = D [OK]
Quick Trick: Centralize control to reduce communication complexity [OK]
Common Mistakes:
MISTAKES
  • Thinking more messages reduce complexity
  • Believing communication is removed
  • Duplicating logic increases complexity

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes