Design Pattern Definitions

Take This Test

Section 1

Identify Design Pattern name from the given definition. Tick the correct answer.

1) Defines an interface for creating an object, but let the subclasses decide which class to instantiate. It lets the instantiation differ to subclasses.
2) Attach additional responsibilities to an object dynamically. It provides a flexible alternative to sub-classing for extending functionality.
3) Define a family of algorithms, encapsulate each one, and make them interchangeable. It lets the algorithm vary independently from clients that use it.
4) Defines one to many dependency between objects so that when one object changes state, all its dependent are notified and updated automatically.
5) Provide an interface for creating families of related or dependent objects without specifying their concrete classes.
6) Ensure a class has only one instance, and provide a global access point to it.
7) Separate the construction of a complex object from its representation so that the same construction process can create different representations.
8) Provide a unified interface to a set of interfaces in a subsystem. It defines a higher level interface that makes the subsystem easier to use.
9) Specify the kind of objects to create using a prototypical instance, and create new objects by copying this prototype.
10) Provide a surrogate or placeholder for another object to control access to it.
11) Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request. Chain the receiving objects and pass the request along the chain until an object handles it.
12) Use sharing to support large numbers of fine-grained objects efficiently.
13) Compose objects into tree structures to represent part-whole hierarchies. It lets clients treat individual objects and compositions of objects uniformly
14) Decouple an abstraction from its implementation so that the two can vary independently.
15) Convert the interface of a class into another interface clients expect. It lets classes work together that couldn't otherwise because of incompatible interfaces.

Take This Test

Also check these Programming Languages test papers, these are one of most attempted test paper in this category.

Popular Programming Languages Papers

Object Oriented Programming
This is a simple test paper on Object Oriented Programming techniques. Try to be very precise in yo...
Design Pattern Definitions - 2
Identify design pattern and list their players and corresponding items (from diagram).
Design Pattern Definitions