← Quiz: Design Patterns: all 10 questions
Quiz: Design Patterns · Question 3 of 10
Choosing a delivery-fee calculation (standard/express/free) at runtime is the:
Choosing a delivery-fee calculation (standard/express/free) at runtime is the:
- A.Singleton pattern
- B.Adapter pattern
- C.Strategy pattern
- D.Observer pattern
Answer & explanation
Correct answer: Strategy pattern
Interchangeable algorithms selected at runtime = Strategy.
Can you get the rest right without peeking?
Take the timed Quiz: Design Patterns quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →