Pattern Selection interview questions

15 real Pattern Selection questions from the Design Patterns bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is Strategy versus State?

Mid
  1. A.the distinction where one converts an existing interface to a required one while the other simplifies access to an entire subsystem
  2. B.the distinction where one creates a single product via subclass override while the other creates whole families of related products through composition
  3. C.the distinction where one returns an object in a single call while the other constructs a complex object through a sequence of configuration steps
  4. D.the distinction where one swaps interchangeable algorithms chosen by the client while the other transitions automatically between condition-driven behaviors
Reveal the answer + AI explanation — free account

2. Which term means: "the distinction where one swaps interchangeable algorithms chosen by the client while the other transitions automatically between condition-driven behaviors"?

Mid
  1. A.Factory versus Builder
  2. B.Adapter versus Facade
  3. C.Decorator versus inheritance
  4. D.Strategy versus State
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Mid
  1. A.Strategy versus State — the choice favoring runtime wrapping to add responsibilities flexibly instead of fixing them at compile time through a class hierarchy
  2. B.Strategy versus State — the distinction where one swaps interchangeable algorithms chosen by the client while the other transitions automatically between condition-driven behaviors
  3. C.Strategy versus State — the distinction where one creates a single product via subclass override while the other creates whole families of related products through composition
  4. D.Strategy versus State — the distinction where one returns an object in a single call while the other constructs a complex object through a sequence of configuration steps
Reveal the answer + AI explanation — free account

4. What is Factory Method versus Abstract Factory?

Mid
  1. A.the choice favoring runtime wrapping to add responsibilities flexibly instead of fixing them at compile time through a class hierarchy
  2. B.the distinction where one converts an existing interface to a required one while the other simplifies access to an entire subsystem
  3. C.the distinction where one creates a single product via subclass override while the other creates whole families of related products through composition
  4. D.the distinction where one swaps interchangeable algorithms chosen by the client while the other transitions automatically between condition-driven behaviors
Reveal the answer + AI explanation — free account

5. Which term means: "the distinction where one creates a single product via subclass override while the other creates whole families of related products through composition"?

Mid
  1. A.Strategy versus State
  2. B.Decorator versus inheritance
  3. C.Factory Method versus Abstract Factory
  4. D.Factory versus Builder
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Mid
  1. A.Factory Method versus Abstract Factory — the distinction where one converts an existing interface to a required one while the other simplifies access to an entire subsystem
  2. B.Factory Method versus Abstract Factory — the distinction where one returns an object in a single call while the other constructs a complex object through a sequence of configuration steps
  3. C.Factory Method versus Abstract Factory — the distinction where one swaps interchangeable algorithms chosen by the client while the other transitions automatically between condition-driven behaviors
  4. D.Factory Method versus Abstract Factory — the distinction where one creates a single product via subclass override while the other creates whole families of related products through composition
Reveal the answer + AI explanation — free account

7. What is Decorator versus inheritance?

Mid
  1. A.the distinction where one converts an existing interface to a required one while the other simplifies access to an entire subsystem
  2. B.the distinction where one returns an object in a single call while the other constructs a complex object through a sequence of configuration steps
  3. C.the distinction where one creates a single product via subclass override while the other creates whole families of related products through composition
  4. D.the choice favoring runtime wrapping to add responsibilities flexibly instead of fixing them at compile time through a class hierarchy
Reveal the answer + AI explanation — free account

8. Which term means: "the choice favoring runtime wrapping to add responsibilities flexibly instead of fixing them at compile time through a class hierarchy"?

Mid
  1. A.Factory Method versus Abstract Factory
  2. B.Adapter versus Facade
  3. C.Decorator versus inheritance
  4. D.Factory versus Builder
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.Decorator versus inheritance — the distinction where one converts an existing interface to a required one while the other simplifies access to an entire subsystem
  2. B.Decorator versus inheritance — the distinction where one returns an object in a single call while the other constructs a complex object through a sequence of configuration steps
  3. C.Decorator versus inheritance — the distinction where one swaps interchangeable algorithms chosen by the client while the other transitions automatically between condition-driven behaviors
  4. D.Decorator versus inheritance — the choice favoring runtime wrapping to add responsibilities flexibly instead of fixing them at compile time through a class hierarchy
Reveal the answer + AI explanation — free account

10. What is Factory versus Builder?

Senior
  1. A.the distinction where one converts an existing interface to a required one while the other simplifies access to an entire subsystem
  2. B.the choice favoring runtime wrapping to add responsibilities flexibly instead of fixing them at compile time through a class hierarchy
  3. C.the distinction where one returns an object in a single call while the other constructs a complex object through a sequence of configuration steps
  4. D.the distinction where one creates a single product via subclass override while the other creates whole families of related products through composition
Reveal the answer + AI explanation — free account

11. Which term means: "the distinction where one returns an object in a single call while the other constructs a complex object through a sequence of configuration steps"?

Senior
  1. A.Decorator versus inheritance
  2. B.Factory Method versus Abstract Factory
  3. C.Adapter versus Facade
  4. D.Factory versus Builder
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Senior
  1. A.Factory versus Builder — the distinction where one swaps interchangeable algorithms chosen by the client while the other transitions automatically between condition-driven behaviors
  2. B.Factory versus Builder — the distinction where one converts an existing interface to a required one while the other simplifies access to an entire subsystem
  3. C.Factory versus Builder — the choice favoring runtime wrapping to add responsibilities flexibly instead of fixing them at compile time through a class hierarchy
  4. D.Factory versus Builder — the distinction where one returns an object in a single call while the other constructs a complex object through a sequence of configuration steps
Reveal the answer + AI explanation — free account

13. What is Adapter versus Facade?

Senior
  1. A.the distinction where one converts an existing interface to a required one while the other simplifies access to an entire subsystem
  2. B.the distinction where one returns an object in a single call while the other constructs a complex object through a sequence of configuration steps
  3. C.the distinction where one creates a single product via subclass override while the other creates whole families of related products through composition
  4. D.the choice favoring runtime wrapping to add responsibilities flexibly instead of fixing them at compile time through a class hierarchy
Reveal the answer + AI explanation — free account

14. Which term means: "the distinction where one converts an existing interface to a required one while the other simplifies access to an entire subsystem"?

Senior
  1. A.Decorator versus inheritance
  2. B.Factory Method versus Abstract Factory
  3. C.Factory versus Builder
  4. D.Adapter versus Facade
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Senior
  1. A.Adapter versus Facade — the distinction where one creates a single product via subclass override while the other creates whole families of related products through composition
  2. B.Adapter versus Facade — the choice favoring runtime wrapping to add responsibilities flexibly instead of fixing them at compile time through a class hierarchy
  3. C.Adapter versus Facade — the distinction where one converts an existing interface to a required one while the other simplifies access to an entire subsystem
  4. D.Adapter versus Facade — the distinction where one swaps interchangeable algorithms chosen by the client while the other transitions automatically between condition-driven behaviors
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Pattern Selection free