Behavioral interview questions

30 real Behavioral 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 Observer?

Junior
  1. A.a pattern that passes a request along a chain of handlers until one of them handles it, decoupling sender from receiver
  2. B.a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations
  3. C.a pattern that captures and externalizes an object's internal state so it can be restored later without violating encapsulation
  4. 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
Reveal the answer + AI explanation — free account

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
  1. A.Observer
  2. B.Chain of Responsibility
  3. C.Iterator
  4. D.Mediator
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. 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
  2. B.Observer — a pattern that captures and externalizes an object's internal state so it can be restored later without violating encapsulation
  3. 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
  4. D.Observer — a pattern that passes a request along a chain of handlers until one of them handles it, decoupling sender from receiver
Reveal the answer + AI explanation — free account

4. What is Strategy?

Junior
  1. A.a pattern that passes a request along a chain of handlers until one of them handles it, decoupling sender from receiver
  2. B.a pattern that defines a family of interchangeable algorithms, encapsulates each one, and lets the algorithm vary independently from clients that use it
  3. C.a pattern that centralizes complex communication between objects in one mediating object so they no longer refer to each other directly
  4. D.a pattern that defines the skeleton of an algorithm in a base method, deferring some steps to subclasses without changing the overall structure
Reveal the answer + AI explanation — free account

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
  1. A.Memento
  2. B.Template Method
  3. C.Strategy
  4. D.Command
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.Strategy — a pattern that captures and externalizes an object's internal state so it can be restored later without violating encapsulation
  2. 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
  3. C.Strategy — a pattern that centralizes complex communication between objects in one mediating object so they no longer refer to each other directly
  4. D.Strategy — a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations
Reveal the answer + AI explanation — free account

7. What is Command?

Mid
  1. A.a pattern that lets an object alter its behavior when its internal condition changes, appearing to change its class
  2. 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
  3. C.a pattern that captures and externalizes an object's internal state so it can be restored later without violating encapsulation
  4. D.a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.Command — a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations
  2. 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
  3. 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
  4. D.Command — a pattern that provides sequential access to the elements of an aggregate object without exposing its underlying representation
Reveal the answer + AI explanation — free account

10. What is State?

Mid
  1. A.a pattern that defines a family of interchangeable algorithms, encapsulates each one, and lets the algorithm vary independently from clients that use it
  2. B.a pattern that lets an object alter its behavior when its internal condition changes, appearing to change its class
  3. 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
  4. D.a pattern that passes a request along a chain of handlers until one of them handles it, decoupling sender from receiver
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.State — a pattern that lets an object alter its behavior when its internal condition changes, appearing to change its class
  2. B.State — a pattern that provides sequential access to the elements of an aggregate object without exposing its underlying representation
  3. C.State — a pattern that passes a request along a chain of handlers until one of them handles it, decoupling sender from receiver
  4. D.State — a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations
Reveal the answer + AI explanation — free account

13. What is Template Method?

Mid
  1. A.a pattern that lets an object alter its behavior when its internal condition changes, appearing to change its class
  2. B.a pattern that passes a request along a chain of handlers until one of them handles it, decoupling sender from receiver
  3. C.a pattern that centralizes complex communication between objects in one mediating object so they no longer refer to each other directly
  4. D.a pattern that defines the skeleton of an algorithm in a base method, deferring some steps to subclasses without changing the overall structure
Reveal the answer + AI explanation — free account

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
  1. A.Chain of Responsibility
  2. B.Command
  3. C.Iterator
  4. D.Template Method
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.Template Method — a pattern that centralizes complex communication between objects in one mediating object so they no longer refer to each other directly
  2. 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
  3. C.Template Method — a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations
  4. D.Template Method — a pattern that provides sequential access to the elements of an aggregate object without exposing its underlying representation
Reveal the answer + AI explanation — free account

16. What is Iterator?

Junior
  1. A.a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations
  2. B.a pattern that centralizes complex communication between objects in one mediating object so they no longer refer to each other directly
  3. C.a pattern that defines the skeleton of an algorithm in a base method, deferring some steps to subclasses without changing the overall structure
  4. D.a pattern that provides sequential access to the elements of an aggregate object without exposing its underlying representation
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Junior
  1. A.Iterator — a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations
  2. 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
  3. C.Iterator — a pattern that provides sequential access to the elements of an aggregate object without exposing its underlying representation
  4. D.Iterator — a pattern that lets an object alter its behavior when its internal condition changes, appearing to change its class
Reveal the answer + AI explanation — free account

19. What is Chain of Responsibility?

Senior
  1. A.a pattern that passes a request along a chain of handlers until one of them handles it, decoupling sender from receiver
  2. B.a pattern that defines a family of interchangeable algorithms, encapsulates each one, and lets the algorithm vary independently from clients that use it
  3. C.a pattern that captures and externalizes an object's internal state so it can be restored later without violating encapsulation
  4. D.a pattern that defines the skeleton of an algorithm in a base method, deferring some steps to subclasses without changing the overall structure
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Senior
  1. 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
  2. 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
  3. 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
  4. 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
Reveal the answer + AI explanation — free account

22. What is Mediator?

Senior
  1. A.a pattern that defines the skeleton of an algorithm in a base method, deferring some steps to subclasses without changing the overall structure
  2. B.a pattern that defines a family of interchangeable algorithms, encapsulates each one, and lets the algorithm vary independently from clients that use it
  3. 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
  4. D.a pattern that centralizes complex communication between objects in one mediating object so they no longer refer to each other directly
Reveal the answer + AI explanation — free account

24. Which statement is correct?

Senior
  1. A.Mediator — a pattern that centralizes complex communication between objects in one mediating object so they no longer refer to each other directly
  2. B.Mediator — a pattern that provides sequential access to the elements of an aggregate object without exposing its underlying representation
  3. C.Mediator — a pattern that lets an object alter its behavior when its internal condition changes, appearing to change its class
  4. D.Mediator — a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations
Reveal the answer + AI explanation — free account

25. What is Visitor?

Senior
  1. A.a pattern that defines the skeleton of an algorithm in a base method, deferring some steps to subclasses without changing the overall structure
  2. B.a pattern that captures and externalizes an object's internal state so it can be restored later without violating encapsulation
  3. C.a pattern that provides sequential access to the elements of an aggregate object without exposing its underlying representation
  4. 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
Reveal the answer + AI explanation — free account

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
  1. A.Template Method
  2. B.Iterator
  3. C.Mediator
  4. D.Visitor
Reveal the answer + AI explanation — free account

27. Which statement is correct?

Senior
  1. 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
  2. B.Visitor — a pattern that lets an object alter its behavior when its internal condition changes, appearing to change its class
  3. 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
  4. D.Visitor — a pattern that captures and externalizes an object's internal state so it can be restored later without violating encapsulation
Reveal the answer + AI explanation — free account

28. What is Memento?

Senior
  1. A.a pattern that captures and externalizes an object's internal state so it can be restored later without violating encapsulation
  2. B.a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations
  3. C.a pattern that defines a family of interchangeable algorithms, encapsulates each one, and lets the algorithm vary independently from clients that use it
  4. D.a pattern that centralizes complex communication between objects in one mediating object so they no longer refer to each other directly
Reveal the answer + AI explanation — free account

30. Which statement is correct?

Senior
  1. A.Memento — a pattern that encapsulates a request as an object, letting you parameterize, queue, log, and undo operations
  2. B.Memento — a pattern that captures and externalizes an object's internal state so it can be restored later without violating encapsulation
  3. C.Memento — a pattern that lets an object alter its behavior when its internal condition changes, appearing to change its class
  4. D.Memento — a pattern that centralizes complex communication between objects in one mediating object so they no longer refer to each other directly
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 Behavioral free