Multiple Choice Questions for Design Patterns

  • 1 A short statement that tells what the design pattern does is
    1. Intent
    2. Structure
    3. Motivation
    4. Applicability

  • 2 Which of the following is not a common designing problem:
    1. Loose coupling
    2. Extending functionality by sub-classing
    3. Dependence on object representations or implementations.
    4. Dependence on specific operations

  • 3 Which category of designs pattern concern with the process of object creation?
    1. Creational
    2. Structural
    3. Behaviour
    4. All Of Above

  • 4 Life / existence of the objects are independent of each other, But one object is playing the role of Owner of the other object
    1. Association
    2. Aggregation
    3. Composition
    4. none of these

  • 5 Observer pattern define _____________ dependency between objects:
    1. many to many
    2. one to many
    3. One to one
    4. no

  • 6 Which of the following category of design patterns characterizes the ways in which classes or objects interact and distribute responsibility.
    1. Creational
    2. Behavioral
    3. Structural
    4. Hierarchical

  • 7 If a line points from a class to another class with an unfilled diamond then its:
    1. Aggregation
    2. Association
    3. Composition
    4. Inheritance

  • 8 Which one is represented by the line with filled diamond.
    1. inheritance
    2. Association
    3. Composition
    4. Interface

  • 9 Which of the following is represented by a line between two classes?
    1. Interface
    2. Association
    3. Aggregation
    4. Composition

  • 10 If a class A uses Class B for example Student uses University Bus for traveling is:
    1. Dependency
    2. Inheritance
    3. Association
    4. Composition

  • 11 Design patterns are valuable information, If they were undocumented then what are its effect?
    1. Designer will repeat old mistakes
    2. Lake of designing skills
    3. Chances of Open closed principle violation
    4. All of the above

  • 12 What makes the system and its architecture becomes more simple, maintainable, flexible and efficient
    1. Code reuse
    2. OOP Language
    3. Design Patterns
    4. None

Contact Us

support@subexpert.com
Write to Us View Help
Subject Expert Logo

Subject Expert

Learn and Evaluate

Follow Us
© 2020 - Subject Expert