wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

BE1 - Behavioral Design Pattern

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.
Which behavioral design pattern allows objects to be notified and updated by a subject when its state changes?
a)
Strategy Pattern
b)
Observer Pattern
c)
Template Method Pattern
d)
Command Pattern
2.
Which behavioral design pattern enables the selection of an algorithm at runtime?
a)
Strategy Pattern
b)
State Pattern
c)
Mediator Pattern
d)
Chain of Responsibility Pattern
3.
Which behavioral design pattern defines the skeleton of an algorithm, allowing subclasses to redefine certain steps without changing the algorithm's structure?
a)
Template Method Pattern
b)
Iterator Pattern
c)
Command Pattern
d)
Visitor Pattern
4.
Which behavioral design pattern allows an object to alter its behavior when its internal state changes?
a)
Memento Pattern
b)
State Pattern
c)
Mediator Pattern
d)
Chain of Responsibility Pattern
5.
Which behavioral design pattern encapsulates a request as an object, thereby allowing clients to parameterize clients with different requests?
a)
Observer Pattern
b)
Strategy Pattern
c)
Command Pattern
d)
Visitor Pattern
6.
Which behavioral design pattern provides a way to access the elements of an aggregate object sequentially without exposing its underlying representation?
a)
Iterator Pattern
b)
Mediator Pattern
c)
Chain of Responsibility Pattern
d)
Visitor Pattern
7.
Which behavioral design pattern defines an object that encapsulates how a set of objects interact, promoting loose coupling between them?
a)
Strategy Pattern
b)
Mediator Pattern
c)
Memento Pattern
d)
Visitor Pattern
8.
Which behavioral design pattern allows an object to pass a request along a chain of potential handlers until one of them handles the request?
a)
Template Method Pattern
b)
State Pattern
c)
Command Pattern
d)
Chain of Responsibility Pattern
9.
Which behavioral design pattern separates an algorithm from the object structure it operates on, allowing new operations to be added without modifying the objects?
a)
Visitor Pattern
b)
Observer Pattern
c)
Strategy Pattern
d)
Memento Pattern
10.
Which behavioral design pattern allows an object to capture and externalize its internal state so that it can be restored later?
a)
State Pattern
b)
Command Pattern
c)
Memento Pattern
d)
Visitor Pattern