Top 350+ Solved software design modeling (SDM) MCQ Questions Answer
Q. Attach additional responsibilities to an object dynamically.It provides a flexible alternative to subclassing for extending functionality.
a. chain of responsibility
b. adapter
c. decorator
d. composite
Q. Which of the following describes the Facade pattern correctly?
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. The use of design patterns for the development of object-oriented software has important implications for ____________
a. component-based software engineering
b. reusability in general
c. all of the above
d. none of above
Q. In which of the following pattern a class represents functionality of another class?
a. proxy pattern
b. chain of responsibility pattern
c. command pattern
d. interpreter pattern
Q. The client software uses the ___________ which provides an interface for creating families related or dependent objects.
a. constant factory
b. abstract factory
c. full factory
d. intermediate factory
Q. Which pattern is used when configuring an application with classes dynamically.
a. facade pattern
b. builder pattern
c. prototype pattern
d. bridge pattern
Q. ___________ pattern ensure a class only has one instance and provide a global point of access to it.
a. singleton pattern
b. filter pattern
c. state pattern
d. bridge pattern
Q. The ____________ is often employed when there is a need to use different sets of objects and where the objects could be added or changed some time during the lifetime of an application.
a. abstract factory
b. singleton pattern
c. builder pattern
d. prototype pattern
Q. Which pattern is used When an object wants to publish information and many objects will need to receive that information.
a. publisher pattern
b. brodcast pattern
c. observer pattern
d. none of above
Q. A ___________ is an object that stores a snapshot of the internal state of another object.
a. observer
b. memento
c. create
d. none of above
Q. Which of the following describes the Command pattern correctly?
a. in this pattern a class represents functionality of another class.
b. this pattern creates a chain of receiver objects for a request.
c. this pattern provides a way to evaluate language grammar or expression.
d. in this pattern a request is wrapped under an object as command and passed to invoker object.
Q. Which design pattern provides a single class which provides simplified methods required by client and delagates call to those methods?
a. adapter pattern
b. builder pattern
c. facade pattern
d. prototype pattern
Q. Which of the following Chooses and standardizes patterns for a problem domain promotes software reuse and, hence, quality and productivity?
a. promoting communication
b. streamlining documentation
c. increasing development efficiency
d. supporting software reuse
Q. Which design pattern suggest multiple classes through which request is passed and multiple but only relevant classes carry out operations on the request?
a. singleton pattern
b. chain of responsibility pattern
c. state pattern
d. bridge pattern
Q. Which of the following are levels of design focus that can be used to categorize WebApp patterns?
a. behavioral patterns
b. visitor pattern
c. navigation patterns
d. layout patterns