Creational Design Patterns . Net_10 June

10 Questions | Total Attempts: 336

SettingsSettingsSettings
Please wait...
Creational Design Patterns . Net_10 June

.


Questions and Answers
  • 1. 
    What is the reason for studying design pattern?
    • A. 

      Patterns makes it possible to reuse solutions

    • B. 

      Patterns help with communication between analysts

    • C. 

      Patterns give you perspective on the problem

    • D. 

      All of the above

  • 2. 
    Patterns are the devices that allow programs to share knowledge about their ___
    • A. 

      Code

    • B. 

      Design

    • C. 

      Analysis

    • D. 

      None

  • 3. 
    Which of the following are among ten things, which the basic templates of GoF design pattern include?
    • A. 

      Problem

    • B. 

      Context

    • C. 

      Forces

    • D. 

      All of the above

  • 4. 
    1. Which are NOT the possible errors of using design patterns?
    • A. 

      Superficiality

    • B. 

      Cohesion

    • C. 

      Fit

    • D. 

      Misdiagnosis

  • 5. 
    Design patterns have to be object oriented?
    • A. 

      True

    • B. 

      False

  • 6. 
    Design patterns enables ____ reuse
    • A. 

      Design

    • B. 

      Architecture

    • C. 

      Application Logic

  • 7. 
    1. Which of following patterns is not used to create an object?
    • A. 

      Factory method

    • B. 

      Strategy

    • C. 

      Prototype

    • D. 

      Abstract Factory

  • 8. 
    Which design pattern is also called anti pattern?
    • A. 

      Factory method

    • B. 

      Singleton

    • C. 

      Prototype

    • D. 

      Abstract Factory

  • 9. 
    What is the key strategy in the Abstract factory?
    • A. 

      Find what varies and encapsulate it

    • B. 

      Favour aggregation over inheritance

    • C. 

      Design to interfaces, not to implementations

    • D. 

      All of the above

  • 10. 
    1. What is the factory implementation in C#?
    • A. 

      GetObject()

    • B. 

      GetEnumerator()

    • C. 

      GetType()

    • D. 

      None of the above

Back to Top Back to top