GofPattern
SiteMap
Design Patterns Course
Behavioral Patterns
Creational Patterns
Structural Patterns
Designing Software
«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 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
Structural Patterns
Structural Pattern Example
StructuralPatterns Help Programmers
Patterns Help Programmers
Common Structural Patterns
Flyweight Pattern Motivation
Flyweight Suitability
FlyweightPattern Structure
FlyweightConsequences
Class Vehicles Intersection
Structural Patterns Conclusion
Behavioral Patterns
Define Behavioral Patterns
BehavioralPatterns Help Programmers
Common Behavioral Patterns
Observer Pattern Motivation
ObserverStructure TimeObserver Interface
TimeClass AsObserved Object
Observer Pattern Tradeoffs
Problems Require Mediator
Mediator Pattern Applicability
Mediator Pattern Structure
Benefits Pitfalls MediatorPattern
MediatorClass Course Project
Behavioral DesignPatterns Conclusion
Designing Software
How to Choose Pattern
How To Apply Pattern
Lessons Learned
Combine Design Patterns
Design Pattern Limitations
Traffic flow System
Course Conclusion
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
Correct answers:
Your Score: 0
Submit
Quiz Explanation