Design Pattern Mock Test II
Design Pattern Mock Test II
This section presents you various set of Mock Tests related to Design Patterns Framework. You
can download these sample mock tests at your local machine and solve offline at your
convenience. Every mock test is supplied with a mock test key to let you verify the final score and
grade yourself.
A - This pattern builds a complex object using simple objects and using a step by step approach.
B - This pattern is used where we need to treat a group of objects in similar way as a single
object.
C - This pattern hides the complexities of the system and provides an interface to the client using
which the client can access the system.
D - This pattern is primarily used to reduce the number of objects created and to decrease
memory footprint and increase performance.
A - This pattern allows a user to add new functionality to an existing object without altering its
structure.
B - This pattern is used where we need to treat a group of objects in similar way as a single
object.
C - This pattern hides the complexities of the system and provides an interface to the client using
which the client can access the system.
D - This pattern is primarily used to reduce the number of objects created and to decrease
memory footprint and increase performance.
A - This pattern allows a user to add new functionality to an existing object without altering its
structure.
B - This pattern is used where we need to treat a group of objects in similar way as a single
object.
C - This pattern hides the complexities of the system and provides an interface to the client using
which the client can access the system.
D - This pattern is primarily used to reduce the number of objects created and to decrease
memory footprint and increase performance.
A - This pattern allows a user to add new functionality to an existing object without altering its
structure.
B - This pattern is used where we need to treat a group of objects in similar way as a single
object.
C - This pattern hides the complexities of the system and provides an interface to the client using
which the client can access the system.
D - This 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 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
A - Composite Pattern
B - Facade Pattern
C - Flyweight Pattern
D - Decorator Pattern
Q 7 - Which of the following pattern hides the complexities of the system and provides
an interface to the client using which the client can access the system?
A - Composite Pattern
B - Facade Pattern
C - Flyweight Pattern
D - Decorator Pattern
Q 8 - Which of the following pattern is primarily used to reduce the number of objects
created and to decrease memory footprint and increase performance?
A - Composite Pattern
B - Facade Pattern
C - Flyweight Pattern
D - Decorator Pattern
D - In this pattern a request is wrapped under an object as command and passed to invoker
object.
D - In this pattern a request is wrapped under an object as command and passed to invoker
object.
D - In this pattern a request is wrapped under an object as command and passed to invoker
object.
D - In this pattern a request is wrapped under an object as command and passed to invoker
object.
A - Proxy Pattern
C - Command Pattern
D - Interpreter Pattern
Q 14 - Which of the following pattern creates a chain of receiver objects for a request?
A - Proxy Pattern
C - Command Pattern
D - Interpreter Pattern
A - Proxy Pattern
C - Command Pattern
D - Interpreter Pattern
A - Proxy Pattern
C - Command Pattern
D - Interpreter Pattern
A - This pattern is used to get a way to access the elements of a collection object in sequential
manner without any need to know its underlying representation.
D - This pattern is used when there is one-to-many relationship between objects such as if one
object is modified, its depenedent objects are to be notified automatically.
A - This pattern is used to get a way to access the elements of a collection object in sequential
manner without any need to know its underlying representation.
D - This pattern is used when there is one-to-many relationship between objects such as if one
object is modified, its depenedent objects are to be notified automatically.
A - This pattern is used to get a way to access the elements of a collection object in sequential
manner without any need to know its underlying representation.
D - This pattern is used when there is one-to-many relationship between objects such as if one
object is modified, its depenedent objects are to be notified automatically.
A - This pattern is used to get a way to access the elements of a collection object in sequential
manner without any need to know its underlying representation.
D - This pattern is used when there is one-to-many relationship between objects such as if one
object is modified, its depenedent objects are to be notified automatically.
Q 21 - Which of the following pattern is used to get a way to access the elements of a
collection object in sequential manner without any need to know its underlying
representation?
A - Iterator Pattern
B - Mediator Pattern
C - Memento Pattern
D - Observer Pattern
A - Iterator Pattern
B - Mediator Pattern
C - Memento Pattern
D - Observer Pattern
A - Iterator Pattern
B - Mediator Pattern
C - Memento Pattern
D - Observer Pattern
A - Iterator Pattern
B - Mediator Pattern
C - Memento Pattern
D - Observer Pattern
C - In this pattern, a class behavior or its algorithm can be changed at run time.
D - In this pattern, an abstract class exposes defined ways/templates to execute its methods.
ANSWER SHEET
1 B
2 A
3 C
4 C
5 A
6 D
7 B
8 C
9 A
10 B
11 D
12 C
13 A
14 B
15 D
16 C
17 A
18 B
19 C
20 D
21 A
22 B
23 C
24 A
25 A
Loading [MathJax]/jax/output/HTML-CSS/jax.js