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
A.the distinction where one converts an existing interface to a required one while the other simplifies access to an entire subsystem
B.the distinction where one creates a single product via subclass override while the other creates whole families of related products through composition
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
D.the distinction where one swaps interchangeable algorithms chosen by the client while the other transitions automatically between condition-driven behaviors
2. Which term means: "the distinction where one swaps interchangeable algorithms chosen by the client while the other transitions automatically between condition-driven behaviors"?
A.Strategy versus State — the choice favoring runtime wrapping to add responsibilities flexibly instead of fixing them at compile time through a class hierarchy
B.Strategy versus State — the distinction where one swaps interchangeable algorithms chosen by the client while the other transitions automatically between condition-driven behaviors
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
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
4. What is Factory Method versus Abstract Factory?
Mid
A.the choice favoring runtime wrapping to add responsibilities flexibly instead of fixing them at compile time through a class hierarchy
B.the distinction where one converts an existing interface to a required one while the other simplifies access to an entire subsystem
C.the distinction where one creates a single product via subclass override while the other creates whole families of related products through composition
D.the distinction where one swaps interchangeable algorithms chosen by the client while the other transitions automatically between condition-driven behaviors
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"?
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
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
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
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
A.the distinction where one converts an existing interface to a required one while the other simplifies access to an entire subsystem
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
C.the distinction where one creates a single product via subclass override while the other creates whole families of related products through composition
D.the choice favoring runtime wrapping to add responsibilities flexibly instead of fixing them at compile time through a class hierarchy
8. Which term means: "the choice favoring runtime wrapping to add responsibilities flexibly instead of fixing them at compile time through a class hierarchy"?
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
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
C.Decorator versus inheritance — the distinction where one swaps interchangeable algorithms chosen by the client while the other transitions automatically between condition-driven behaviors
D.Decorator versus inheritance — the choice favoring runtime wrapping to add responsibilities flexibly instead of fixing them at compile time through a class hierarchy
A.the distinction where one converts an existing interface to a required one while the other simplifies access to an entire subsystem
B.the choice favoring runtime wrapping to add responsibilities flexibly instead of fixing them at compile time through a class hierarchy
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
D.the distinction where one creates a single product via subclass override while the other creates whole families of related products through composition
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"?
A.Factory versus Builder — the distinction where one swaps interchangeable algorithms chosen by the client while the other transitions automatically between condition-driven behaviors
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
C.Factory versus Builder — the choice favoring runtime wrapping to add responsibilities flexibly instead of fixing them at compile time through a class hierarchy
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
A.the distinction where one converts an existing interface to a required one while the other simplifies access to an entire subsystem
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
C.the distinction where one creates a single product via subclass override while the other creates whole families of related products through composition
D.the choice favoring runtime wrapping to add responsibilities flexibly instead of fixing them at compile time through a class hierarchy
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"?
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
B.Adapter versus Facade — the choice favoring runtime wrapping to add responsibilities flexibly instead of fixing them at compile time through a class hierarchy
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
D.Adapter versus Facade — the distinction where one swaps interchangeable algorithms chosen by the client while the other transitions automatically between condition-driven behaviors
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.