GOFPatterns   Tweet
eWebProgrammer J2EEOnline

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
Score =
Correct answers: