OOPS Quiz (Set 10) OOPS (Set 10) 1 / 10 What is a design pattern? A design pattern is a set of instructions that tells you how to build a software system A design pattern is a reusable solution to a commonly occurring problem in software design A design pattern is a way of organizing code 2 / 10 What is the Memento pattern? The Memento pattern captures and externalizes an object's internal state so that it can be modified later The Memento pattern captures and externalizes an object's internal state so that it can be restored later The Memento pattern captures and externalizes an object's internal state so that it can be deleted later 3 / 10 What is the Visitor pattern? The Visitor pattern allows you to separate the code that visits objects from the code that processes the objects The Visitor pattern allows you to separate the code that visits objects from the code that manipulates the objects The Visitor pattern allows you to separate the code that visits objects from the code that represents the objects 4 / 10 What is the State pattern? The State pattern allows an object to change its behavior when its external state changes The State pattern allows an object to change its behavior when its internal state is modified The State pattern allows an object to change its behavior when its internal state changes 5 / 10 What is the Flyweight pattern? The Flyweight pattern minimizes memory usage by sharing objects that are identical The Flyweight pattern minimizes memory usage by sharing objects that are similar The Flyweight pattern minimizes memory usage by sharing objects that are related 6 / 10 What is the Bridge pattern? The Bridge pattern decouples an interface from its implementation The Bridge pattern decouples an abstraction from its implementation The Bridge pattern decouples a class from its implementation 7 / 10 What is the Strategy pattern? The Strategy pattern defines a family of algorithms, encapsulates each one, and makes them indistinguishable The Strategy pattern defines a family of algorithms, encapsulates each one, and makes them reusable The Strategy pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable 8 / 10 What is the Template Method pattern? The Template Method pattern defines the skeleton of an algorithm, and subclasses must implement all of the steps The Template Method pattern defines the skeleton of an algorithm, but leaves some steps to be implemented by subclasses The Template Method pattern defines the skeleton of an algorithm, and subclasses can override some of the steps 9 / 10 What is the Composite pattern? The Composite pattern allows you to treat individual objects and compositions of objects as a tree The Composite pattern allows you to treat individual objects and compositions of objects in a uniform way The Composite pattern allows you to treat individual objects and compositions of objects as a graph 10 / 10 What is the Decorator pattern? The Decorator pattern dynamically adds new behaviors to an object The Decorator pattern dynamically adds new attributes to an object The Decorator pattern dynamically adds new methods to an object Your score isThe average score is 0% 0% Restart quiz