Quiz- GoF Design Patterns (III)

Approved & Edited by ProProfs Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Sarvesh
S
Sarvesh
Community Contributor
Quizzes Created: 9 | Total Attempts: 72,149
Questions: 8 | Attempts: 522

SettingsSettingsSettings
Design Quizzes & Trivia

The quiz test you knowledge about GoF design patterns as introduced in"Design Patterns" Element of Reusable Object Oriented Software.


Questions and Answers
  • 1. 

    Which one of the following is not a participant in Chain of Responsibility pattern?

    • A.

      Handler

    • B.

      ConcreteHandler1

    • C.

      ChainHandler

    • D.

      Client

    Correct Answer
    C. ChainHandler
    Explanation
    The other participant is ConcreteHandler2

    Rate this question:

  • 2. 

    Which one of the following is not a participant in Iterator pattern?

    • A.

      Iterator

    • B.

      ConcreteIterator

    • C.

      Aggregate

    • D.

      Invoker

    Correct Answer
    D. Invoker
    Explanation
    The other participant is ConcreteAggregate

    Rate this question:

  • 3. 

    Which one of the following is not a participant in Mediator pattern?

    • A.

      Receiver

    • B.

      ConcreteMediator

    • C.

      Colleague

    • D.

      Mediator

    Correct Answer
    A. Receiver
    Explanation
    The other participants are ConcreteColleague1 and ConcreteColleague2

    Rate this question:

  • 4. 

    Which one of the following is not a participant in Observer pattern?

    • A.

      Observer

    • B.

      Subject

    • C.

      ConcreteSubject

    • D.

      Observed

    Correct Answer
    D. Observed
    Explanation
    The other participant is ConcreteObserver

    Rate this question:

  • 5. 

    Which one of the following is not a participant in State pattern?

    • A.

      State

    • B.

      Context

    • C.

      ConcreteStateA

    • D.

      ConcreteContext

    Correct Answer
    D. ConcreteContext
    Explanation
    The other participant is ConcreteStateB

    Rate this question:

  • 6. 

    Which one of the following is not a participant in Proxy pattern?

    • A.

      Proxy

    • B.

      Subject

    • C.

      ConcreteProxy

    • D.

      RealSubject

    Correct Answer
    C. ConcreteProxy
    Explanation
    There are only three participant

    Rate this question:

  • 7. 

    Which one of the following is not a participant in Strategy pattern?

    • A.

      Strategy

    • B.

      ConcretStrategyA

    • C.

      ConcretStrategyB

    • D.

      Subject

    Correct Answer
    D. Subject
    Explanation
    The other participants are Context and ConcretStrategyC

    Rate this question:

  • 8. 

    Which one of the following is not a participant in Visitor pattern?

    • A.

      Visitor

    • B.

      Invoker

    • C.

      ObjectStructure

    • D.

      Element

    Correct Answer
    B. Invoker
    Explanation
    The other participants are ConcreteElementA, ConcreteElementB, ConcreteVisitor1 and ConcreteVisitor2

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 14, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Sep 12, 2008
    Quiz Created by
    Sarvesh
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.