--:--









Quiz for Design Patterns

Course: JAVA | Subject: Java | Topic: Other Key Subjects



Logo

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

Logo

Q2: What is the purpose of the Factory pattern?

Logo

Q3: Which pattern ensures that only one instance of a class is created?

Logo

Q4: Which design pattern is used to decouple the sender and receiver of a request?

Logo

Q5: Which design pattern provides a simplified interface to a complex subsystem?

Logo

Q6: Which pattern is used to add new behavior to an object dynamically?

Logo

Q7: Which pattern is used to convert one interface to another?

Logo

Q8: Which design pattern provides a surrogate or placeholder for another object?

Logo

Q9: Which pattern separates the construction of a complex object from its representation?

Logo

Q10: Which pattern defines a one-to-many dependency between objects?

Logo

Q11: Which pattern lets subclasses redefine certain steps of an algorithm without changing its structure?

Logo

Q12: Which design pattern encapsulates interchangeable behaviors and uses delegation to decide which behavior to use?

Logo

Q13: Which design pattern composes objects into tree structures to represent part-whole hierarchies?

Logo

Q14: Which pattern helps avoid creating many instances of the same object?

Logo

Q15: Which pattern involves cloning an existing object to create a new one?

Logo

Q16: Which pattern centralizes complex communications and control between related objects?

Logo

Q17: Which pattern decouples abstraction from implementation?

Logo

Q18: Which pattern provides a way to access the elements of an aggregate object sequentially without exposing its underlying representation?

Logo

Q19: Which pattern allows objects to alter their behavior when their internal state changes?

Logo

Q20: Which pattern provides a high-level interface to a set of interfaces in a subsystem?

Are you ready to start test? Set your time limit