
- Design Patterns Tutorial
- Design Patterns - Home
- Design Patterns - Overview
- Design Patterns - Factory Pattern
- Abstract Factory Pattern
- Design Patterns - Singleton Pattern
- Design Patterns - Builder Pattern
- Design Patterns - Prototype Pattern
- Design Patterns - Adapter Pattern
- Design Patterns - Bridge Pattern
- Design Patterns - Filter Pattern
- Design Patterns - Composite Pattern
- Design Patterns - Decorator Pattern
- Design Patterns - Facade Pattern
- Design Patterns - Flyweight Pattern
- Design Patterns - Proxy Pattern
- Chain of Responsibility Pattern
- Design Patterns - Command Pattern
- Design Patterns - Interpreter Pattern
- Design Patterns - Iterator Pattern
- Design Patterns - Mediator Pattern
- Design Patterns - Memento Pattern
- Design Patterns - Observer Pattern
- Design Patterns - State Pattern
- Design Patterns - Null Object Pattern
- Design Patterns - Strategy Pattern
- Design Patterns - Template Pattern
- Design Patterns - Visitor Pattern
- Design Patterns - MVC Pattern
- Business Delegate Pattern
- Composite Entity Pattern
- Data Access Object Pattern
- Front Controller Pattern
- Intercepting Filter Pattern
- Service Locator Pattern
- Transfer Object Pattern
- Design Patterns Resources
- Design Patterns - Questions/Answers
- Design Patterns - Quick Guide
- Design Patterns - Useful Resources
- Design Patterns - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Design Patterns Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to Design Patterns Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Q 1 - Which of the following is correct about Abstract Factory design pattern.
A - This type of design pattern comes under creational pattern.
B - Abstract Factory patterns work around a super-factory which creates other factories.
Answer : D
Explanation
Abstract Factory patterns work around a super-factory which creates other factories. This factory is also called as factory of factories. This type of design pattern comes under creational pattern as this pattern provides one of the best ways to create an object. In Abstract Factory pattern an interface is responsible for creating a factory of related objects without explicitly specifying their classes. Each generated factory can give the objects as per the Factory pattern.
Q 2 - Which of the following describes the Builder pattern correctly?
A - This pattern builds a complex object using simple objects and using a step by step approach.
B - This pattern refers to creating duplicate object while keeping performance in mind.
C - This pattern is used when creation of object directly is costly.
Answer : A
Explanation
Builder pattern builds a complex object using simple objects and using a step by step approach. This builder is independent of other objects.
Q 3 - Which of the following describes the Decorator pattern correctly?
Answer : A
Explanation
Decorator pattern allows a user to add new functionality to an existing object without altering its structure.
Q 4 - Which of the following pattern hides the complexities of the system and provides an interface to the client using which the client can access the system?
Answer : B
Explanation
Facade pattern hides the complexities of the system and provides an interface to the client using which the client can access the system.
Q 5 - Which of the following pattern a request is wrapped under an object as command and passed to invoker object?
Answer : C
Explanation
A request is wrapped under an object as command and passed to invoker object. Invoker object looks for the appropriate object which can handle this command and passes the command to the corresponding object which executes the command.
Q 6 - Which of the following describes the Business Delegate pattern correctly?
B - This pattern is used to separate application's concerns.
C - This pattern is used to decouple presentation tier and business tier.
Answer : C
Explanation
Business Delegate pattern is used to decouple presentation tier and business tier.
Q 7 - Which of the following describes the DAO pattern correctly?
D - This pattern is used when we want to locate various services using JNDI lookup.
Answer : A
Explanation
DAO pattern, is used to separate low level data accessing API or operations from high level business services.
Q 8 - Which of the following pattern creates object without exposing the creation logic to the client and refer to newly created object using a common interface?
Answer : A
Explanation
Factory Pattern creates object without exposing the creation logic to the client and refer to newly created object using a common interface.
Q 9 - Which of the following describes the Behavioral pattern correctly?
C - This type of pattern are specifically concerned with communication between objects.
D - This type of pattern are specifically concerned with the presentation tier.
Answer : C
Explanation
Behavioral Design Patterns are specifically concerned with communication between objects.
Q 10 - Which of the following is the correct list of entities of Front Controller pattern?
A - Front Controller, Dispatcher, View
B - Front Controller, Dispatcher
Answer : A
Explanation
Front Controller, Dispatcher, View are the entities of Front Controller pattern.