- 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 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 true about design patterns?
Answer : D
Explanation
Design patterns represent the best practices used by experienced object-oriented software developers. Design patterns are solutions to general problems that software developers faced during software development. These solutions were obtained by trial and error by numerous software developers over quite a substantial period of time.
Answer : B
Explanation
true. Integer.valueOf() returns a Integer instance representing the specified int value.
Q 3 - Which of the following pattern is used when creation of object directly is costly?
Answer : A
Explanation
Prototype pattern is used when creation of object directly is costly.
Q 4 - Which of the following pattern creates a chain of receiver objects for a request?
Answer : B
Explanation
As the name suggests, the chain of responsibility pattern creates a chain of receiver objects for a request.
Q 5 - Which of the following describes the Mediator pattern correctly?
B - This pattern is used to reduce communication complexity between multiple objects or classes.
C - This pattern is used to restore state of an object to a previous state.
Answer : B
Explanation
This pattern is used to reduce communication complexity between multiple objects or classes.
Q 6 - In which of the following pattern, an abstract class exposes defined way(s)/template(s) to execute its methods?
Answer : D
Explanation
In Template pattern, an abstract class exposes defined way(s)/template(s) to execute its methods.
Q 7 - Which of the following pattern is used to to decouple presentation tier and business tier?
Answer : C
Explanation
Business Delegate pattern is used to decouple presentation tier and business tier.
Q 8 - Which of the following pattern involves a single class which is responsible to create an object while making sure that only single object gets created?
Answer : C
Explanation
Singleton Pattern involves a single class which is responsible to create an object while making sure that only single object gets created.
Q 9 - Which of the following pattern is used when we want to pass data with multiple attributes in one shot from client to server?
Answer : D
Explanation
Transfer Object Pattern is used when we want to pass data with multiple attributes in one shot from client to server.
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.
To Continue Learning Please Login
Login with Google