Quiz: Important Trivia Quiz On Design Pattern

20 Questions | Attempts: 457
Share

SettingsSettingsSettings
Quiz: Important Trivia Quiz On Design Pattern - Quiz

Here is an Important Trivia Quiz on Design Pattern that is guaranteed to refresh your memory of the topic. A design pattern is basically a solution that is given to a commonly occurring problem in software if it not fully developed software. Take up the quiz and be sure to refer to your book on some of the questions you get wrong!


Questions and Answers
  • 1. 
    ____ methods retrieve and update attribute values. 
    • A. 

      Overloaded

    • B. 

      B. Get and set

    • C. 

      Constructor

    • D. 

      Data

  • 2. 
    The prototype pattern is a ____ pattern. 
    • A. 

      a. structural class-level

    • B. 

      b. creational object-level

    • C. 

      c. creational class-level

    • D. 

      d. behavioral object-level

  • 3. 
    Which of the following is a responsibility of a view layer class? 
    • A. 

      a. Display electronic forms and reports.

    • B. 

      b. Establish and maintain connections to the database.

    • C. 

      c. Prepare persistent classes for storage to the database.

    • D. 

      d. Process all business rules with appropriate logic.

  • 4. 
     In a communication diagram, a(n) ____ always directly follows the sequence number. 
    • A. 

      a. equal sign

    • B. 

      Semicolon

    • C. 

      Colon

    • D. 

      Dash

  • 5. 
    Communication diagrams and sequence diagrams are both ____ diagrams, and they capture ____ information. 
    • A. 

      a. interaction, the same

    • B. 

      b. interaction, different

    • C. 

      c. data flow, the same

    • D. 

      d. data flow, different

  • 6. 
    The ____ pattern is a behavioral object-level pattern. 
    • A. 

      Singleton

    • B. 

      Proxy

    • C. 

      Bridge

    • D. 

      Strategy

  • 7. 
    Which of the following is a responsibility of a data access layer class? 
    • A. 

      a. Accept input data.

    • B. 

      b. Create problem domain (persistent) classes.

    • C. 

      c. Disconnect gracefully from the database.

    • D. 

      d. Process all business rules with appropriate logic.

  • 8. 
     In a communication diagram, true/false conditions are contained in ____. 
    • A. 

      Braces

    • B. 

      Parentheses

    • C. 

      c. quotation marks

    • D. 

      Brackets

  • 9. 
     Design patterns became a widely accepted object-oriented design technique in 1996 when the ____ published Elements of Reusable Object-Oriented Software. 
    • A. 

      a. Group of Five

    • B. 

      b. MIT Media Lab

    • C. 

      c. Object-Oriented Consortium

    • D. 

      d. Gang of Four

  • 10. 
    ____ is a design principle to segregate classes into separate components based on the primary focus of the classes. 
    • A. 

      a. Realization of use cases

    • B. 

      b. Separation of responsibilities

    • C. 

      c. Dependency relationships

    • D. 

      Indirection

  • 11. 
    A(n) ____ diagram in UML is simply a high-level diagram that allows designers to associate classes of related groups. 
    • A. 

      a. entity-relationship

    • B. 

      Package

    • C. 

      Message

    • D. 

      d. use case controller

  • 12. 
    Over the last few years, powerful ____ (IDE) tools have been developed to help programmers construct systems. 
    • A. 

      a. Internet development entity

    • B. 

      b. Internet development environment

    • C. 

      c. integrated development entity

    • D. 

      d. integrated development environment

  • 13. 
    Which of the following is a responsibility of a domain layer class? 
    • A. 

      a. Display electronic forms and reports.

    • B. 

      b. Establish and maintain connections to the database.

    • C. 

      c. Capture input events such as clicks, rollovers, and key entry.

    • D. 

      d. Process all business rules with appropriate logic.

  • 14. 
    The singleton pattern has the same basic logic as the ____ method pattern. 
    • A. 

      Adapter

    • B. 

      Factory

    • C. 

      Builder

    • D. 

      Observer

  • 15. 
    Developing ____ diagrams is at the heart of object-oriented detailed design. 
    • A. 

      Method

    • B. 

      Interaction

    • C. 

      c. design pattern

    • D. 

      Artifact

  • 16. 
    A(n) ____ frame is similar to an if-then-else statement or switch statement, which allows the firing of different sets of messages. 
    • A. 

      Loop

    • B. 

      Rpt

    • C. 

      Alt

    • D. 

      Opt

  • 17. 
     ____ is the process of elaborating the detailed design with interaction diagrams of a particular use case. 
    • A. 

      a. Use case realization

    • B. 

      b. Use case control

    • C. 

      c. Design patterning

    • D. 

      d. Separation of responsibilities

  • 18. 
    When a message is sent from an originating object to a destination object, in programming terms it means that the originating object is invoking a ____ on the destination object. 
    • A. 

      Lifeline

    • B. 

      Method

    • C. 

      Sequence

    • D. 

      Class

  • 19. 
    The differences between programming languages and database languages have partially driven the trend to a ____ design. 
    • A. 

      Procedural

    • B. 

      Schematic

    • C. 

      Multilayer

    • D. 

      d. single-layer

  • 20. 
     In OO two-layer designs, the Structured Query Language (SQL) statements to access a database are part of the ____ layer. 
    • A. 

      a. business logic

    • B. 

      View

    • C. 

      Middleware

    • D. 

      Separation

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.