GofPatterns
SiteMap
Design Patterns Course
Behavioral Patterns
Creational Patterns
Structural Patterns
Behavioral Patterns
«Prev
Next»
Design Patterns
Defining Patterns
Three Types Design Patterns
Behavioral Creational Structural
Design Pattern Components
Design Pattern Benefits
Design Pattern Scope
Three Categories Patterns
Singleton Patterns
Singleton Pattern-Quiz
Real World Examples
Design Pattern Elements
Creational Patterns
Factory Method Consequences
Factory Method-Exercise
Common Creational Patterns
Structural Patterns
Structural Pattern Example
Patterns Help Programmers
Common Structural Patterns
Flyweight Pattern
Flyweight Consequences
GOF Structural Patterns
Adapter Bridge Composite
Flyweight Suitability
Behavioral Patterns
Define Behavioral Patterns
Mediator Pattern Applicability
Observer Pattern Tradeoffs
Designing Software
How to Choose Pattern
Combine Design Patterns
Design Pattern Limitations
How To Apply Pattern
Common Behavioral Patterns - Quiz
Each question is worth one point. Select the best answer or answers for each question.
1.
Which of the following patterns lets you define a new operation on an object structure without changing the class of the objects?
Please select the best answer.
A.
Chain of Responsibility
B.
Visitor
C.
Strategy
D.
Mediator
2.
Which of the following patterns allows an object to notify interested listeners of changes to its state?
Please select the best answer.
A.
Chain of Responsibility
B.
Command
C.
Iterator
D.
Observer
3.
Which of the following patterns allows multiple objects an opportunity to process a request without guaranteeing that any of them must process it?
Please select the best answer.
A.
Chain of Responsibility
B.
Command
C.
Memento
D.
Mediator
4.
Which of the following is an object pattern that encapsulates interchangeable algorithms in objects so the algorithm can vary independently of the classes that use it?
Please select the best answer.
A.
Chain of Responsibility
B.
Command
C.
Strategy
D.
Mediator
Correct answers:
Your Score: 0
Submit
Quiz Explanation