Section 7 Design Patterns Questions
Section 7 Design Patterns Questions
Q1. Which design pattern is best suited for creating a family of related objects?
• A) Singleton
• B) Factory
• C) Abstract Factory
• D) Adapter
Q3. Which pattern allows behavior to be added to an individual object without affecting
others of the same class?
• A) Singleton
• B) Observer
• C) Decorator
• D) Adapter
Q5. Which design pattern separates the construction of a complex object from its
representation?
• A) Builder
• B) Factory
• C) Singleton
• D) Adapter
Q9. Which design pattern would be most appropriate for managing expensive-to-create
resources?
• A) Factory
• B) Prototype
• C) Proxy
• D) Singleton