Creational Design Patterns Quiz (v2)

Q1. What is the primary purpose of creational design patterns?




Q2. Which creational design pattern ensures a class has only one instance and provides a global point of access to it?




Q3. In which creational pattern is an object cloned to create new instances?




Q4. Which pattern is used to create an object step-by-step, separating the construction process from its representation?




Q5. Which creational pattern defines an interface for creating an object but lets subclasses decide which class to instantiate?




Q6. In the Abstract Factory pattern, what is the main role of the abstract factory?




Q7. Which pattern would you use to create different configurations of a complex object, such as a car with varying engines and wheels?




Q8. In the Prototype pattern, what is a key challenge when implementing deep copying of objects?




Q9. How does the Abstract Factory pattern differ from the Factory Method pattern in terms of scope and flexibility?




Q10. In the context of the Builder pattern, what is the role of the Director, and how does it interact with the Builder?




design-patterns