30 Behavioral questions from the Design Patterns bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.a pattern that passes a request along a chain of handlers until one of them handles it, decoupling sender from receiver
B.a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations
C.a pattern that captures and externalizes an object's internal state so it can be restored later without violating encapsulation
D.a pattern that defines a one-to-many dependency so when one object changes state all its dependents are notified automatically, the basis of pub-sub
Answer + AI explanation with Pro
2. Which term means: "a pattern that defines a one-to-many dependency so when one object changes state all its dependents are notified automatically, the basis of pub-sub"?
Junior
A.Observer
B.Chain of Responsibility
C.Iterator
D.Mediator
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.Observer — a pattern that represents an operation to perform on the elements of an object structure, letting you add new operations without changing the element classes
B.Observer — a pattern that captures and externalizes an object's internal state so it can be restored later without violating encapsulation
C.Observer — a pattern that defines a one-to-many dependency so when one object changes state all its dependents are notified automatically, the basis of pub-sub
D.Observer — a pattern that passes a request along a chain of handlers until one of them handles it, decoupling sender from receiver
Answer + AI explanation with Pro
4. What is Strategy?
Junior
A.a pattern that passes a request along a chain of handlers until one of them handles it, decoupling sender from receiver
B.a pattern that defines a family of interchangeable algorithms, encapsulates each one, and lets the algorithm vary independently from clients that use it
C.a pattern that centralizes complex communication between objects in one mediating object so they no longer refer to each other directly
D.a pattern that defines the skeleton of an algorithm in a base method, deferring some steps to subclasses without changing the overall structure
Answer + AI explanation with Pro
5. Which term means: "a pattern that defines a family of interchangeable algorithms, encapsulates each one, and lets the algorithm vary independently from clients that use it"?
Junior
A.Memento
B.Template Method
C.Strategy
D.Command
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.Strategy — a pattern that captures and externalizes an object's internal state so it can be restored later without violating encapsulation
B.Strategy — a pattern that defines a family of interchangeable algorithms, encapsulates each one, and lets the algorithm vary independently from clients that use it
C.Strategy — a pattern that centralizes complex communication between objects in one mediating object so they no longer refer to each other directly
D.Strategy — a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations
Answer + AI explanation with Pro
7. What is Command?
Mid
A.a pattern that lets an object alter its behavior when its internal condition changes, appearing to change its class
B.a pattern that represents an operation to perform on the elements of an object structure, letting you add new operations without changing the element classes
C.a pattern that captures and externalizes an object's internal state so it can be restored later without violating encapsulation
D.a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations
Answer + AI explanation with Pro
8. Which term means: "a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations"?
Mid
A.Iterator
B.Visitor
C.Observer
D.Command
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.Command — a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations
B.Command — a pattern that defines a family of interchangeable algorithms, encapsulates each one, and lets the algorithm vary independently from clients that use it
C.Command — a pattern that defines the skeleton of an algorithm in a base method, deferring some steps to subclasses without changing the overall structure
D.Command — a pattern that provides sequential access to the elements of an aggregate object without exposing its underlying representation
Answer + AI explanation with Pro
10. What is State?
Mid
A.a pattern that defines a family of interchangeable algorithms, encapsulates each one, and lets the algorithm vary independently from clients that use it
B.a pattern that lets an object alter its behavior when its internal condition changes, appearing to change its class
C.a pattern that represents an operation to perform on the elements of an object structure, letting you add new operations without changing the element classes
D.a pattern that passes a request along a chain of handlers until one of them handles it, decoupling sender from receiver
Answer + AI explanation with Pro
11. Which term means: "a pattern that lets an object alter its behavior when its internal condition changes, appearing to change its class"?
Mid
A.State
B.Command
C.Visitor
D.Observer
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.State — a pattern that lets an object alter its behavior when its internal condition changes, appearing to change its class
B.State — a pattern that provides sequential access to the elements of an aggregate object without exposing its underlying representation
C.State — a pattern that passes a request along a chain of handlers until one of them handles it, decoupling sender from receiver
D.State — a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations
Answer + AI explanation with Pro
13. What is Template Method?
Mid
A.a pattern that lets an object alter its behavior when its internal condition changes, appearing to change its class
B.a pattern that passes a request along a chain of handlers until one of them handles it, decoupling sender from receiver
C.a pattern that centralizes complex communication between objects in one mediating object so they no longer refer to each other directly
D.a pattern that defines the skeleton of an algorithm in a base method, deferring some steps to subclasses without changing the overall structure
Answer + AI explanation with Pro
14. Which term means: "a pattern that defines the skeleton of an algorithm in a base method, deferring some steps to subclasses without changing the overall structure"?
Mid
A.Chain of Responsibility
B.Command
C.Iterator
D.Template Method
Answer + AI explanation with Pro
15. Which statement is correct?
Mid
A.Template Method — a pattern that centralizes complex communication between objects in one mediating object so they no longer refer to each other directly
B.Template Method — a pattern that defines the skeleton of an algorithm in a base method, deferring some steps to subclasses without changing the overall structure
C.Template Method — a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations
D.Template Method — a pattern that provides sequential access to the elements of an aggregate object without exposing its underlying representation
Answer + AI explanation with Pro
16. What is Iterator?
Junior
A.a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations
B.a pattern that centralizes complex communication between objects in one mediating object so they no longer refer to each other directly
C.a pattern that defines the skeleton of an algorithm in a base method, deferring some steps to subclasses without changing the overall structure
D.a pattern that provides sequential access to the elements of an aggregate object without exposing its underlying representation
Answer + AI explanation with Pro
17. Which term means: "a pattern that provides sequential access to the elements of an aggregate object without exposing its underlying representation"?
Junior
A.Iterator
B.Mediator
C.Command
D.Visitor
Answer + AI explanation with Pro
18. Which statement is correct?
Junior
A.Iterator — a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations
B.Iterator — a pattern that defines a family of interchangeable algorithms, encapsulates each one, and lets the algorithm vary independently from clients that use it
C.Iterator — a pattern that provides sequential access to the elements of an aggregate object without exposing its underlying representation
D.Iterator — a pattern that lets an object alter its behavior when its internal condition changes, appearing to change its class
Answer + AI explanation with Pro
19. What is Chain of Responsibility?
Senior
A.a pattern that passes a request along a chain of handlers until one of them handles it, decoupling sender from receiver
B.a pattern that defines a family of interchangeable algorithms, encapsulates each one, and lets the algorithm vary independently from clients that use it
C.a pattern that captures and externalizes an object's internal state so it can be restored later without violating encapsulation
D.a pattern that defines the skeleton of an algorithm in a base method, deferring some steps to subclasses without changing the overall structure
Answer + AI explanation with Pro
20. Which term means: "a pattern that passes a request along a chain of handlers until one of them handles it, decoupling sender from receiver"?
Senior
A.Chain of Responsibility
B.State
C.Observer
D.Visitor
Answer + AI explanation with Pro
21. Which statement is correct?
Senior
A.Chain of Responsibility — a pattern that centralizes complex communication between objects in one mediating object so they no longer refer to each other directly
B.Chain of Responsibility — a pattern that defines the skeleton of an algorithm in a base method, deferring some steps to subclasses without changing the overall structure
C.Chain of Responsibility — a pattern that passes a request along a chain of handlers until one of them handles it, decoupling sender from receiver
D.Chain of Responsibility — a pattern that defines a one-to-many dependency so when one object changes state all its dependents are notified automatically, the basis of pub-sub
Answer + AI explanation with Pro
22. What is Mediator?
Senior
A.a pattern that defines the skeleton of an algorithm in a base method, deferring some steps to subclasses without changing the overall structure
B.a pattern that defines a family of interchangeable algorithms, encapsulates each one, and lets the algorithm vary independently from clients that use it
C.a pattern that defines a one-to-many dependency so when one object changes state all its dependents are notified automatically, the basis of pub-sub
D.a pattern that centralizes complex communication between objects in one mediating object so they no longer refer to each other directly
Answer + AI explanation with Pro
23. Which term means: "a pattern that centralizes complex communication between objects in one mediating object so they no longer refer to each other directly"?
Senior
A.Mediator
B.Memento
C.Visitor
D.State
Answer + AI explanation with Pro
24. Which statement is correct?
Senior
A.Mediator — a pattern that centralizes complex communication between objects in one mediating object so they no longer refer to each other directly
B.Mediator — a pattern that provides sequential access to the elements of an aggregate object without exposing its underlying representation
C.Mediator — a pattern that lets an object alter its behavior when its internal condition changes, appearing to change its class
D.Mediator — a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations
Answer + AI explanation with Pro
25. What is Visitor?
Senior
A.a pattern that defines the skeleton of an algorithm in a base method, deferring some steps to subclasses without changing the overall structure
B.a pattern that captures and externalizes an object's internal state so it can be restored later without violating encapsulation
C.a pattern that provides sequential access to the elements of an aggregate object without exposing its underlying representation
D.a pattern that represents an operation to perform on the elements of an object structure, letting you add new operations without changing the element classes
Answer + AI explanation with Pro
26. Which term means: "a pattern that represents an operation to perform on the elements of an object structure, letting you add new operations without changing the element classes"?
Senior
A.Template Method
B.Iterator
C.Mediator
D.Visitor
Answer + AI explanation with Pro
27. Which statement is correct?
Senior
A.Visitor — a pattern that defines the skeleton of an algorithm in a base method, deferring some steps to subclasses without changing the overall structure
B.Visitor — a pattern that lets an object alter its behavior when its internal condition changes, appearing to change its class
C.Visitor — a pattern that represents an operation to perform on the elements of an object structure, letting you add new operations without changing the element classes
D.Visitor — a pattern that captures and externalizes an object's internal state so it can be restored later without violating encapsulation
Answer + AI explanation with Pro
28. What is Memento?
Senior
A.a pattern that captures and externalizes an object's internal state so it can be restored later without violating encapsulation
B.a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations
C.a pattern that defines a family of interchangeable algorithms, encapsulates each one, and lets the algorithm vary independently from clients that use it
D.a pattern that centralizes complex communication between objects in one mediating object so they no longer refer to each other directly
Answer + AI explanation with Pro
29. Which term means: "a pattern that captures and externalizes an object's internal state so it can be restored later without violating encapsulation"?
Senior
A.Memento
B.State
C.Command
D.Strategy
Answer + AI explanation with Pro
30. Which statement is correct?
Senior
A.Memento — a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations
B.Memento — a pattern that captures and externalizes an object's internal state so it can be restored later without violating encapsulation
C.Memento — a pattern that lets an object alter its behavior when its internal condition changes, appearing to change its class
D.Memento — a pattern that centralizes complex communication between objects in one mediating object so they no longer refer to each other directly
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Behavioral question come with Pro.