SiteMap
Course
Behavior
Creation
Structure
Designing Software
«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
Pros/Cons Mediator Pattern
Define Behavioral Patterns
Mediator Pattern Applicability
Behavioral Patterns Help Programmers
Observer Pattern Tradeoffs
Designing Software
How to Choose Pattern
Combine Design Patterns
Design Pattern Limitations
How To Apply Pattern
How to use Design Patterns - Quiz
Each question is worth one point. Select the best answer or answers for each question.
1.
Suppose you need to define parallel class hierarchies of graphical user interface components for different platforms. Which of the following patterns is likely to be most helpful in that task?
Please select the best answer.
A.
Abstract Factory
B.
Decorator
C.
Façade
D.
Flyweight
2.
Suppose you have a back-end data model that must be connected to multiple front-end user interfaces. Which of these patterns would best assist you with keeping them all in sync?
Please select the best answer.
A.
Abstract Factory
B.
Mediator
C.
Factory Method
D.
Flyweight
3.
You need to leave decisions about which class to instantiate to the subclasses of an abstract base class. Which pattern best assists in this task?
Please select the best answer.
A.
Factory Method
B.
Flyweight
C.
Observer
D.
Mediator
4.
You need to establish flexible one-to-many connections between objects so when the one object's state changes the many objects all become aware of the change.
Please select the best answer.
A.
Abstract Factory
B.
Builder
C.
Factory Method
D.
Observer
Score =
Correct answers:
Quiz Explanation