Creational Design Patterns
- Design Patterns - Factory Pattern
- Abstract Factory Pattern
- Design Patterns - Singleton Pattern
- Design Patterns - Builder Pattern
- Design Patterns - Prototype Pattern
Structural Design Patterns
- 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
Behavioral Design Patterns
- 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 - Strategy Pattern
- Design Patterns - Template Pattern
- Design Patterns - Visitor Pattern
J2EE Design Patterns
- Design Patterns - Null Object 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 Useful Resources
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 Structural design patterns.
A - These design patterns are specifically concerned with communication between objects.
Answer : C
Explanation
Structural design patterns concern class and object composition. Concept of inheritance is used to compose interfaces and define ways to compose objects to obtain new functionalities.
Answer : A
Explanation
true. Wrapper classes like Integer, Boolean uses Decorator pattern.
Q 3 - Which of the following pattern builds a complex object using simple objects and using a step by step approach?
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 4 - Which of the following pattern is primarily used to reduce the number of objects created and to decrease memory footprint and increase performance?
Answer : C
Explanation
Flyweight pattern is primarily used to reduce the number of objects created and to decrease memory footprint and increase performance.
Q 5 - Which of the following pattern is used to reduce communication complexity between multiple objects or classes?
Answer : B
Explanation
Mediator 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 - In which of the following pattern, a visitor class is used which changes the executing algorithm of an element class?
Answer : A
Explanation
In Visitor pattern, a visitor class is used which changes the executing algorithm of an element class.
Q 8 - Which of the following pattern is used when we want to do some pre-processing / post-processing with request or response of the application?
Answer : C
Explanation
Intercepting Pattern is used when we want to do some pre-processing / post-processing with request or response of the application.
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 MVC pattern?
Answer : A
Explanation
Model, View, Controller are the entities of MVC Pattern.