🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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:

  1. A.Singleton pattern
  2. B.Adapter pattern
  3. C.Strategy pattern
  4. 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 →