GofPattern
SiteMap
Design Patterns Course
Behavioral Patterns
Creational Patterns
Structural Patterns
Behavioral Patterns
«Prev
Next»
Design Patterns
Defining Patterns
Design Challenges
Pattern Concept
Design Pattern Components
Big-O Notation
Design Pattern Benefits
Three Types Design Patterns
Design Pattern Scope
Traffic Signals Project
Patterns Conclusion
Singleton Patterns
Design Pattern Elements
Intent Motivation
Pattern Applicability
Singleton Pattern Structure
Singleton Structure
Singleton Pattern-Quiz
Participants Collaborations
Consequences Effects
Class Implementation
Real World Examples
Substitute Patterns
Extension Variation Pattern
Course Project
Perfect Singleton
Pattern Conclusion
Creational Patterns
Creational Design Pattern
Creational Pattern Uses
Common Creational Patterns
Factory Pattern
Factory Method-Exercise
Factory Method Structure
Factory Method Consequences
factory Pattern Summary
Structural Patterns
Structural Pattern Example
Patterns Help Programmers
Common Structural Patterns
Flyweight Pattern
Flyweight Consequences
Flyweight Suitability
Behavioral Patterns
Define Behavioral Patterns
Mediator Pattern Applicability
Observer Pattern Tradeoffs
Designing Software
How to Choose Pattern
How To Apply Pattern
Lessons Learned
Combine Design Patterns
Design Pattern Limitations
Traffic flow System
Course Conclusion
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