Creational Design Patterns Quiz

Q1. Which of the following is a creational design pattern?




Q2. What is the main purpose of the Builder pattern?




Q3. Which pattern ensures that a class has only one instance and provides a global point of access?




Q4. In the Factory Method pattern, which component typically decides which class to instantiate?




Q5. What is the difference between the Abstract Factory and Factory Method patterns?




Q6. In the Prototype pattern, how are new objects typically created?




Q7. Which pattern allows the construction of complex objects step by step and separates the object construction from its representation?




Q8. When using the Singleton pattern, which of the following might be a potential downside?




Q9. In a large-scale application, why might the Abstract Factory pattern be preferred over multiple separate Factory Methods?




Q10. What is a potential drawback of the Builder pattern in terms of design complexity?




design-patterns