Behavioral interview questions

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.

Take the free IT readiness check

or take a mock interview set up for this area

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

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
  1. A.Observer
  2. B.Chain of Responsibility
  3. C.Iterator
  4. D.Mediator

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.Memento
  2. B.Template Method
  3. C.Strategy
  4. D.Command

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.Iterator
  2. B.Visitor
  3. C.Observer
  4. D.Command

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.State
  2. B.Command
  3. C.Visitor
  4. D.Observer

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.Chain of Responsibility
  2. B.Command
  3. C.Iterator
  4. D.Template Method

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.Iterator
  2. B.Mediator
  3. C.Command
  4. D.Visitor

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.Chain of Responsibility
  2. B.State
  3. C.Observer
  4. D.Visitor

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.Mediator
  2. B.Memento
  3. C.Visitor
  4. D.State

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.Template Method
  2. B.Iterator
  3. C.Mediator
  4. D.Visitor

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.Memento
  2. B.State
  3. C.Command
  4. D.Strategy

Answer + AI explanation with Pro

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

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.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers