0% found this document useful (0 votes)
17 views1 page

R1941052

bdfs

Uploaded by

sushmaragolu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views1 page

R1941052

bdfs

Uploaded by

sushmaragolu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

001.

Which of the following pattern is used when we need to


decouple an abstraction from its implementation so that the two
can vary independently
Ans Bridge Pattern
002. Which of the following describes the Filter pattern correctly?
Ans This pattern refers to creating duplicate object while keeping
performance in mind.
003. Which of the following is correct about Factory design pattern.
Ans These design patterns are specifically concerned with
communication between objects.
004. Which of the following pattern builds a complex object using
simple objects and using a step by step approach?
Ans Builder Pattern
005. Which of the following describes the Adapter pattern correctly?
Ans This pattern works as a bridge between two incompatible
interfaces.
006. Which of the following pattern refers to creating duplicate object
while keeping performance in mind?
Ans Prototype Pattern
007. Which of the following is correct list of classifications of design
patterns.
Ans Creational, Structural and Behavioral patterns.
008. Which of the following describes the Bridge pattern correctly
Ans This pattern is used when we need to decouple an abstraction
from its implementation so that the two can vary
independently.
009. Which of the following is correct about Singleton design pattern.
Ans This type of design pattern comes under creational pattern.
010. Attach additional responsibilities to an object dynamically. It
provides a flexible alternative to sub classing for extending
functionality.
Ans Decorator
011. Design Patterns are divided into _______ fundamental groups
Ans 3
012. A pattern language
Ans encompasses a collection of patterns
013. Which of the following pattern refers to creating duplicate object
while keeping performance in mind?
Ans Java
014. Which of the following pattern refers to creating duplicate object
while keeping performance in mind?
Ans Chain of Responsibility Pattern
015. Which design pattern ensures that only one object of particular
class gets created?
Ans Singleton
016. Which design pattern suggest multiple classes through which
request is passed and multiple but only relevant classes carry out
operations on the request
Ans Chain of Responsibility pattern
017. Most user interface design patterns fall within one of ______
categories of patterns
Ans 10
018. Which of the following is not a design pattern?
Ans J2EE
019. In which of the following pattern, a visitor class is used which
changes the executing algorithm of an element class?
Ans Visitor Pattern
020. The adapter catches the call for one object and transforms them
to be recognizable by the _______ .
Ans second object
021. EJB stands for_______
Ans Enterprise Java Beans
022. Adapter Design Pattern falls under the category of ________
Ans Structural
023. Factory design pattern belongs to the category of __________
Ans Creational
024. What are not the design patterns used in Javas JDK library?
Ans Designing
025. Patterns important due to
Ans They Capture expert design Knowledge
026. Which of the following belongs to iterator pattern?
Ans They delegate activities to other portions of the sub-system to
which they provide an interface
027. Which design pattern suggest multiple classes?
Ans Chain of Responsibility Pattern
028. Which one pattern creating duplicate object?
Ans Prototype Pattern
029. A visitor class is used which changes the executing algorithm of
an element class
Ans Visitor Pattern
030. Which are the drawback for mediator pattern
Ans Forcing collaborator interaction through the mediator may
compromise performance
031. Which of the following is consequence of mediator class
Ans It encapsulates an interaction, making the interaction easier
to change
032. Which of the following does not follow the sequence of the
mediator pattern
Ans As in any broker pattern, the Mediator receives a request for
service at last
033. Which of the following is correct
Ans The objects are coupled only to the mediator, which contains
all the code for coordinating the collaboration
034. Which of the following is a type of broker pattern?
Ans Mediator
035. Which of the following are concerned with communication
between objects?
Ans Behavior Design Pattern
036. 1.Which of the following pattern provides a way to evaluate
language grammar orexpression?
Ans D- Interpreter Pattern
037. Attach additional responsibilities to an object dynamically.It
provides a flexible alternative to subclassing for extending
functionality.
Ans Decorator
038. Which of the following belongs to iterator pattern?
Ans The behavior doesnot follows the general outline of a broker
pattern interaction
039. Which of the pattern all the classes coupling is reduced?
Ans Mediator
040. Which of the following pattern is used when we need to
decouple an abstraction from itsimplementation so that the two
can vary independently?
Ans Bridge Pattern
041. Which one pattern creating duplicate object?
Ans B.Prototype Pattern
042. Which of the following is the correct list of entities of DAO
pattern?
Ans Data Access Object Interface, Data Access Object concrete
class, Model Object or ValueObject
043. Which of the following describes the Service Locator pattern
correctly?
Ans This pattern is used when we want to locate various services
using JNDI lookup.
044. Which of the following describes the Structural pattern
correctly?
Ans This type of patterns concern class and object composition.
Concept of inheritance isused to compose interfaces and
define ways to compose objects to obtain newfunctionalities.
045. Which of the following is consequence for proxy pattern?
Ans The proxy pattern makes it possible to defer expensive
operations until they are necessary
046. The ___________ suggests that you link these handlers into a
chain
Ans Chain of responsibility
047. What are stand-ins for objects not yet created are called?
Ans Virtual proxies
048. Which of the following describes the Builder pattern correctly?
Ans This pattern builds a complex object using simple objects
and using a step by stepapproach.
049. In which of the following pattern a class represents functionality
of another class?
Ans Proxy Pattern
050. Which design pattern suggests multiple classes through which
request is passed and multiple but only relevant classes carry out
operations on the request?
Ans Chain of responsibility pattern.
051. Which class that can have only one instance?
Ans Singleton class.
052. Which of the following is not the advantage of interpreter
Ans Complex grammars are hard to maintain
053. Chain of Responsibility pattern is responsible for
Ans For displaying contextual help
054. 5.The recurring aspects of designs are called design _______
Ans patterns
055. Which of the following can be included as the collection?
Ans List
056. What does collection iteration means?
Ans It is iteration over the collection
057. Define the skeleton of an algorithm in an operation, deferring
some steps to subclasses. It lets subclasses redefine certain steps
of algorithm without changing the algorithm structure.
Ans Template Method
058. Provides a unified interface to a set of interface and subsystem it
defines. A higher level interface that makes the subsystem easier
to use.
Ans Strategy
059. Attach additional responsibilities to an object dynamically. It
provides a flexible alternative to subclassing for extending
functionality.
Ans Decorator.
060. Interface control mechanism can work in which of these?
Ans Both internal and external.
061. An interaction mechanism which provides collection element as
directed by the client.
Ans Internal.
062. Which of the possibilities for where nitration mechanism
resides?
Ans Iterator.
063. Which among these are the iteration control facilities?
Ans Initialize.
064. Which of these are necessary requirements for iteration
mechanism?
Ans Initialize.
065. An iteration mechanism is able to tolerate changes to its
associated collection only when collection meets which of the
following.
Ans Fault tolerance.
066. Which of the following patterns lets you define a new operation
on an object structure without changing the class of the objects?
Ans Visitor.
067. Placing Iteration mechanism in iterators separate from collection
must satisfy which of the following?
Ans Multiple simultaneous iterations.
068. Which of the following is true about built-in iteration control
mechanism?
Ans Lack of flexibility is the biggest drawback.
069. Which of the following is true about built-in external iteration
control mechanism?
Ans The collection might provide the following operations to
control iterations reset,get next
070. The caretaker calls the __________method
Ans set Memento()
071. ____ contains the template Method()
Ans Abstract Class
072. A _________ would like to perform an operation on the
Originator while having the possibility to rollback
Ans Caretaker
073. Which of the following patterns allows an object to notify
interested listeners of changes to its state?
Ans Observer.
074. Which of the following patterns allows multiple objects in
opportunity to process a request without guaranteeing that any of
them must process it?
Ans Chain of Responsibility
075. Create an InterpreterPatternClient class that will use
____Conversion.
Ans Infix toPostfix
076. _________are counterparts to design patterns.
Ans Antipatterns
077. Which of the following is not the component of interpreter
design pattern
Ans Server
078. Process Order() is the method that contains the _______
Ans process steps
079. The template method is used in ________
Ans frameworks
080. A common application of Object Pool which applications use in
general is with __________
Ans Database Connections
081. In Chain of Responsibility , the request to be handled is handed
over to a group of objects to process the request in a _____way
Ans dynamic
082. ________ provides a common interface through which the object
can be created.
Ans Builder Pattern
083. Which of the following is not the difference between static and
singleton class?
Ans The objects of static classes are stored on stack Vs the objects
of singleton class are not stored in heap memory space.
084. _______ involves implementing a prototype interface
Ans Prototype pattern
085. Adapter pattern works as a bridge between _____ incompatible
interfaces.
Ans two
086. In which pattern, the class behavior or its algorithm can be
changed at run time.
Ans Strategy Pattern
087. ______ promotes the loose-coupling
Ans Factory Design Pattern
088. ________acts like a macro
Ans Command pattern
089. In _________ pattern the template method itself should be final
Ans Template
090. Which of the following is not a type of behavioral design
pattern?
Ans Adapter Method
091. The _______ method is a behavioral design pattern that lets you
transverse elements of a collection without exposing its
underlying elements or representations.
Ans Iterator Method
092. Which of the following is not a type of behavioral design
pattern?
Ans Abstract Method
093. Which of the following patterns lets you define a new operation
on an object structure without changing the class of the objects?
Ans Visitor
094. Which of the following is an object pattern that encapsulates
interchangeable algorithms in objects so the algorithm can vary
independently of the classes that use it?
Ans Strategy
095. Which of the methods is a behavioural design pattern that allows
us to separate the algorithm from an object structure on which it
operates?
Ans Visitor Method
096. The _______ method is a behavioral design pattern that reduces
the unordered dependencies between the objects.
Ans Mediator
097. ________ method is a behavioural design pattern that allows an
object to change its behaviour when there occurs a change in its
internal state.
Ans State Method
098. Which method is a behavioral design pattern that allows you to
define or create a subscription mechanism to send the
notification to multiple objects about any new event that happens
to the object that they are observing?
Ans Observer Method

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy