Trivia Questions On Object Oriented Design Pattern

24 Questions | Total Attempts: 711

SettingsSettingsSettings
Please wait...
Trivia Questions On Object Oriented Design Pattern

Are you looking for Trivia Questions on Object-Oriented Design Pattern? The quiz below is one of the quizzes you can take up to refresh your memory on what you have learned about the different design patterns in use today and most especially the object-oriented design pattern. Think you can handle it? Press the start button and see how many questions you get right.


Questions and Answers
  • 1. 
    Which Design Pattern has this Intent?
    • Convert the interface of a class into another interface clients expect.
    • A. 

      Facade

    • B. 

      Adapter

    • C. 

      Prototype

    • D. 

      Proxy

  • 2. 
    Which Design Pattern has this Intent?
    • Separate the construction of a complex object from its representation so that the same construction process can create different representations.
    • A. 

      Facade

    • B. 

      Composite

    • C. 

      Singleton

    • D. 

      Builder

  • 3. 
    Which Design Pattern has this Intent?
    • Provide a unified interface to a set of interfaces in a subsystem. _____ defines a higher-level interface that makes the subsystem easier to use.
    • A. 

      Memento

    • B. 

      Adapter

    • C. 

      Facade

    • D. 

      Abstract Method

  • 4. 
    Which Design Pattern has this Intent?
    • Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations.
    • A. 

      Proxy

    • B. 

      Command

    • C. 

      Observer

    • D. 

      Flyweight

  • 5. 
    Which Design Pattern has this Intent?
    • Provide an interface for creating families of related or dependent objects without specifying their concrete classes.
    • A. 

      Strategy

    • B. 

      Factory Method

    • C. 

      Abstract Factory

    • D. 

      Composite

  • 6. 
    Which Design Pattern has this Intent?
    • Attach additional responsibilities to an object dynamically. _____ provide a flexible alternative to subclassing for extending functionality.
    • A. 

      Strategy

    • B. 

      Builder

    • C. 

      Bridge

    • D. 

      Decorator

  • 7. 
    Which Design Pattern has this Intent?
    • Define an interface for creating an object, but let subclasses decide which class to instantiate. ____ lets a class defer instantiation to subclasses.
    • A. 

      Composite

    • B. 

      Template Methode

    • C. 

      Factory Method

    • D. 

      Abstract Factory

  • 8. 
    Which Design Pattern has this Intent?
    • Define an object that encapsulates how a set of objects interact. ____ promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their interaction independently.
    • A. 

      Mediator

    • B. 

      Proxy

    • C. 

      Bridge

    • D. 

      Visitor

  • 9. 
    Which Design Pattern has this Intent?
    • Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request.
    • A. 

      Decorator

    • B. 

      Chain of Responsibility

    • C. 

      Observer

    • D. 

      State

  • 10. 
    Which Design Pattern has this Intent?
    • Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype.
    • A. 

      Singleton

    • B. 

      Flyweight

    • C. 

      Prototype

    • D. 

      Decorator

  • 11. 
    Which Design Pattern has this Intent?
    • Given a language, define a represention for its grammar along with an interpreter that uses the representation to interpret sentences in the language.
    • A. 

      Iterator

    • B. 

      Interpreter

    • C. 

      State

    • D. 

      Chain of Responsibility

  • 12. 
    Which Design Pattern has this Intent?
    • Represent an operation to be performed on the elements of an object structure. ____ lets you define a new operation without changing the classes of the elements on which it operates.
    • A. 

      Decorator

    • B. 

      Proxy

    • C. 

      Visitor

    • D. 

      Command

  • 13. 
    Which Design Pattern has this Intent?
    • Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
    • A. 

      Composite

    • B. 

      Proxy

    • C. 

      Iterator

    • D. 

      Mediator

  • 14. 
    Which Design Pattern has this Intent?
    • Provide a surrogate or placeholder for another object to control access to it.
    • A. 

      Proxy

    • B. 

      Memento

    • C. 

      Mediator

    • D. 

      Facade

  • 15. 
    Which Design Pattern has this Intent?
    • Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. _____ lets subclasses redefine certain steps of an algorithm without changing the algorithm's structure.
    • A. 

      Bridge

    • B. 

      Factory Method

    • C. 

      Template Method

    • D. 

      Builder

  • 16. 
    Which Design Pattern has this Intent?
    • Compose objects into tree structures to represent part-whole hierarchies. Clients treat collections of objects and individual objects uniformly.
    • A. 

      Composite

    • B. 

      Prototype

    • C. 

      Template

    • D. 

      Iterator

  • 17. 
    Which Design Pattern has this Intent?
    • Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.
    • A. 

      Composite

    • B. 

      Strategy

    • C. 

      Decorator

    • D. 

      State

  • 18. 
    Which Design Pattern has this Intent?
    • Define a family of algorithms, encapsulate each one, and make them interchangeable. _____ lets the algorithm vary independently from clients that use it.
    • A. 

      Facade

    • B. 

      Strategy

    • C. 

      Abstract Factory

    • D. 

      Builder

  • 19. 
    Which Design Pattern has this Intent?
    • Decouple an abstraction from its implementation so that the two can vary independently.
    • A. 

      Bridge

    • B. 

      Composite

    • C. 

      Strategy

    • D. 

      Factory Method

  • 20. 
    Which Design Pattern has this Intent?
    • Without violating encapsulation, capture and externalize an object's internal state so that the object can be restored to this state later.
    • A. 

      State

    • B. 

      Observer

    • C. 

      Command

    • D. 

      Memento

  • 21. 
    Which Design Pattern has this Intent?
    • Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
    • A. 

      State

    • B. 

      Observer

    • C. 

      Proxy

    • D. 

      Mediator

  • 22. 
    Which Design Pattern has this Intent?
    • Use sharing to support large numbers of fine-grained objects efficiently.
    • A. 

      Proxy

    • B. 

      Flyweight

    • C. 

      Interpreter

    • D. 

      Iterator

  • 23. 
    Which Design Pattern has this Intent?
    • Ensure a class only has one instance, and provide a global point of access to it.
    • A. 

      Command

    • B. 

      Singleton

    • C. 

      Proxy

    • D. 

      Observer