0
0
LLDsystem_design~10 mins

When to use which structural pattern in LLD - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to select the structural pattern used to simplify complex object creation.

LLD
Use the [1] pattern to build complex objects step by step.
Drag options to blanks, or click blank then click option'
ADecorator
BBuilder
CAdapter
DFacade
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing Builder with Adapter or Decorator patterns.
2fill in blank
medium

Complete the code to choose the pattern that allows incompatible interfaces to work together.

LLD
The [1] pattern helps convert one interface to another expected by clients.
Drag options to blanks, or click blank then click option'
AAdapter
BFlyweight
CProxy
DComposite
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing Adapter with Proxy or Composite patterns.
3fill in blank
hard

Fix the error in the code to select the pattern that provides a simplified interface to a complex system.

LLD
Use the [1] pattern to hide complex subsystem details behind a simple interface.
Drag options to blanks, or click blank then click option'
ABridge
BMediator
CFacade
DDecorator
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing Facade with Decorator or Mediator patterns.
4fill in blank
hard

Fill both blanks to select the pattern that composes objects into tree structures and lets clients treat them uniformly.

LLD
The [1] pattern allows clients to treat individual objects and compositions as [2].
Drag options to blanks, or click blank then click option'
AComposite
BFlyweight
CComponent
DProxy
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing Composite with Flyweight or Proxy patterns.
5fill in blank
hard

Fill all three blanks to select the pattern that adds responsibilities to objects dynamically and the correct terms for the base and added objects.

LLD
The [1] pattern attaches additional [2] to an object dynamically. The base object implements the [3] interface.
Drag options to blanks, or click blank then click option'
ADecorator
Bbehaviors
CComponent
DAdapter
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing Decorator with Adapter or Proxy patterns.