Design Patterns/Design Pattern Mcq Set 1 Sample Test,Sample questions

Question:
 Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. It lets subclasses redefine certain steps of an algorithm without changing the algorithm

1.Chain of responsibility

2.Template method

3.Interpretor

4.Prototype


Question:
 Which design pattern suggests multiple classes through which request is passed and multiple but only relevant classes carry out operations on the request?

1. Singleton pattern

2.Chain of responsibility pattern

3.State pattern

4.Bridge pattern


Question:
 Which of the below is not a valid design pattern?

1.Singleton

2.Factory

3.Command

4. Java


Question:
A pattern language

1.encompasses a collection of patterns

2.is implemented using hypertext

3.resembles the structure of natural languages

4.None of the above


Question:
Attach additional responsibilities to an object dynamically.It provides a flexible alternative to subclassing for extending functionality.

1.Chain of responsibility

2.Adapter

3.Decorator

4.Composite


Question:
Design patterns are divided into three fundamental groups.

1.Behavioral Patterns

2. Creational Patterns

3.Structural Patterns

4.J2EE Patterns


Question:
In which of the following pattern, a visitor class is used which changes the executing algorithm of an element class?

1.Visitor Pattern

2. MVC Pattern

3.Business Delegate Pattern

4.Composite Entity Pattern


Question:
Most user interface design patterns fall with in one of ____ categories of patterns.

1.5

2.10

3.25

4.100


Question:
What does MVC pattern stands for?

1.Mock View Control

2.Model view Controller

3.Mock View Class

4.Model View Class


Question:
Which design pattern ensures that only one object of particular class gets created?

1.Singleton pattern

2.Filter pattern

3.State pattern

4. Bridge pattern


Question:
Which design pattern provides a single class which provides simplified methods required by client and delagates call to those methods?

1.Adapter pattern

2.Builder pattern

3.Facade pattern

4.Prototype pattern


Question:
Which design pattern provides a single class which provides simplified methods required by client and delegates call to those methods?

1.Adapter pattern

2.Builder pattern

3.Facade pattern

4.Prototype pattern


Question:
Which design pattern represents a way to access all the objects in a collection?

1.Iterator pattern

2.Facade pattern

3.Builder pattern

4. Bridge pattern


Question:
Which design pattern suggest multiple classes through which request is passed and multiple but only relevant classes carry out operations on the request?

1.Singleton pattern

2.Chain of responsibility pattern

3.State pattern

4.Bridge pattern


Question:
Which design pattern works on data and action taken based on data provided?

1.Command pattern

2.Singleton pattern

3.MVC pattern

4.Facade pattern


Question:
Which of the below author is not a part of GOF (Gang of Four)?

1.Erich Gamma

2.Gang Pattern

3. Richard Helm

4.Ralph Johnson


Question:
Which of the below is not a valid classification of design pattern?

1.Creational patterns

2.Structural patterns

3. Behavioural patterns

4.Java patterns


Question:
Which of the following are levels of design focus that can be used to categorize WebApp patterns?

1.Behavioral patterns

2.Functional patterns

3.Navigation patterns

4.Both b and c


Question:
Which of the following Chooses and standardizes patterns for a problem domain promotes software reuse and, hence, quality and productivity?

1.Promoting Communication

2.Streamlining Documentation

3.Increasing Development Efficiency

4.Supporting Software Reuse


Question:
Which of the following pattern refers to creating duplicate object while keeping performance in mind?

1.Builder Pattern

2.Bridge Pattern

3.Prototype Pattern

4.Filter Pattern


More MCQS

  1. Design Pattern Mcq Set 1
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!