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.

Questions and Answers

Answer : A

Explanation

Design patterns can be classified in three categories: Creational, Structural and Behavioral patterns.

Q 2 - If we serialize a singleton object and deserialize it then the result object will be same.

A - true

B - false

Answer : B

Explanation

false. Deserializing a serialized object will yield a different object.

Answer : D

Explanation

Command pattern is a data driven design pattern and falls under behavioral pattern category. 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 7 - In which of the following pattern, a visitor class is used which changes the executing algorithm of an element class?

A - Visitor Pattern

B - MVC Pattern

C - Business Delegate Pattern

D - Composite Entity Pattern

Answer : A

Explanation

In Visitor pattern, a visitor class is used which changes the executing algorithm of an element class.

Q 9 - Which type of design patterns are specifically concerned with the presentation tier?

A - Creational Design Patterns

B - Structural Design Patterns

C - Behavioral Design Pattern

D - J2EE Design Patterns

Answer : D

Explanation

J2EE Design Patterns are specifically concerned with the presentation tier.

Answer : C

Explanation

Filter, Filter Chain, Target, Filter Manager, Client are the entities of Intercepting pattern.

design_pattern_questions_answers.htm
Advertisements