Design Patterns Online Quiz


Advertisements


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 : 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.

Q 3 - Which of the following pattern is used where we need to treat a group of objects in similar way as a single object?

A - Composite Pattern

B - Facade Pattern

C - Flyweight Pattern

D - Decorator Pattern

Answer : A

Explanation

Composite Pattern is used where we need to treat a group of objects in similar way as a single object.

Answer : C

Explanation

Interpreter pattern provides a way to evaluate language grammar or expression. This type of pattern comes under behavioral pattern. This pattern involves implementing an expression interface which tells to interpret a particular context.

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.

Q 10 - In MVC pattern, View represents the visualization of the data that model contains.

A - false

B - true

Answer : B

Explanation

True. In MVC pattern, View represents the visualization of the data that model contains.


design_pattern_questions_answers.htm

Advertisements
E-Books Store