OOPS Quiz (Set 11) OOPS (Set 11) 1 / 10 What is the Decorator pattern? The Decorator pattern dynamically adds new attributes to an object The Decorator pattern dynamically adds new methods to an object The Decorator pattern dynamically adds new behaviors to an object 2 / 10 What is the Facade pattern? The Facade pattern provides a unified interface to a set of interfaces in a subsystem The Facade pattern provides a unified interface to a set of classes in a subsystem The Facade pattern provides a unified interface to a set of functions in a subsystem 3 / 10 What is the Adapter pattern? The Adapter pattern converts the interface of one class into another interface that is easier to use The Adapter pattern converts the interface of one class into another interface that clients expect The Adapter pattern converts the interface of one class into another interface that is more efficient 4 / 10 What is the Prototype pattern? The Prototype pattern creates a new object by cloning an existing object The Prototype pattern creates a new object by creating a new instance of a class The Prototype pattern creates a copy of an existing object 5 / 10 What is the Abstract Factory pattern? The Abstract Factory pattern defines a family of related products, and provides a concrete implementation for creating them The Abstract Factory pattern defines a family of related products, and provides an interface for creating them The Abstract Factory pattern defines a family of related products, and provides a way to create them 6 / 10 What is the Factory Method pattern? The Factory Method pattern defines an interface for creating an object, but leaves it to the subclass to decide which class to instantiate The Factory Method pattern defines an interface for creating an object, but leaves it to the programmer to decide which class to instantiate The Factory Method pattern defines an interface for creating an object, but leaves it to subclasses to decide which class to instantiate 7 / 10 What is the Singleton pattern? The Singleton pattern ensures that a class can only be instantiated once The Singleton pattern ensures that only one instance of a class is ever created The Singleton pattern ensures that a class can only be instantiated by a single thread 8 / 10 What are some of the most common design patterns? Singleton, Factory Method, Abstract Factory, Builder, Prototype, Adapter, Facade, Decorator, Composite Singleton, Factory Method, Abstract Factory, Builder, Prototype, Adapter, Facade, Decorator, Composite, Template Method Singleton, Factory Method, Abstract Factory, Builder, Prototype, Adapter, Facade, Decorator, Composite, Strategy 9 / 10 What are the limitations of using design patterns? Design patterns can be difficult to understand Design patterns can be time-consuming to implement Design patterns can be inflexible 10 / 10 What are the benefits of using design patterns? Design patterns can help to improve the readability and maintainability of code Design patterns can help to reduce the risk of errors Design patterns can help to improve the performance of code Your score isThe average score is 0% 0% Restart quiz