Top 350+ Solved software design modeling (SDM) MCQ Questions Answer
Q. The main advantage of design patterns:
a. provide proven solutions
b. simplify complex problems
c. improve communication
d. all of above
Q. Which Design Pattern should you use when you want to parameterize objects by an action to perform.
a. command
b. prototype
c. strategy
d. builder
Q. Which Design Pattern should you use whenyou want to represent part-whole hierarchies of objects.
a. composite
b. iterator
c. abstract factory
d. flyweight
Q. Which Design Pattern should you use when an application uses a large number of objects and the storage costs are high because of the sheer quantity of objects.
a. interpreter
b. singleton
c. facade
d. composite
Q. Which Design Pattern should you use when more than one object may handle a request, and the handler isn't known a priori. The handler should be ascertained automatically.
a. observer
b. chain of responsibility
c. decorator
d. prototype
Q. Which GRASP pattern helps to find out answer for “Who should be responsible for creating a new instance of some class?"
a. adapter
b. protected variations
c. creator
d. controller
Q. ___________ is a measure of how strongly one element is connected to, has knowledge of, or relies on other elements.
a. coupling
b. creator
c. controller
d. bonding
Q. A _____________ system is one in which each of its components has little or no knowledge of the definitions of other separate components.
a. tightly coupled
b. strong coupled
c. loosely coupled
d. weak coupled
Q. In Low coupling two elements are coupled, if ______________________.
a. one element has aggregation/composition association with another element.
b. one element implements/extends other element.
c. both a&b
d. none of above
Q. We can make an object as Controller, if ___________________
a. object represents the overall system
b. object represent a use case, handling a sequence of operations
c. both a&b
d. none of above
Q. A good software will have _____________.
a. high cohesion
b. low coupling
c. both a&b
d. none of above
Q. The indirection pattern supports _____________
a. low coupling
b. reuse
c. both a&b
d. none of above
Q. Which design pattern defines one-to-many dependency among objects?
a. singleton pattern
b. facade pattern
c. observer pattern
d. factory method pattern
Q. Which of the following is correct about Factory design pattern.
a. this type of design pattern comes under creational pattern.
b. factory pattern creates object without exposing the creation logic to the client.
c. factory pattern refers to newly created object using a common interface.
d. all of the above