Top 350+ Solved software design modeling (SDM) MCQ Questions Answer

From 346 to 360 of 445

Q. The __________ allows an object to alter its behavior when its internal state changes.

a. abstract factory

b. state pattern

c. flyweight pattern

d. adapter pattern

  • b. state pattern

Q. In which of the following pattern, a null object replaces check of NULL object instance?

a. state pattern

b. null object pattern

c. strategy pattern

d. template pattern

  • b. null object pattern

Q. In which of the following pattern, a visitor class is used which changes the executing algorithm of an element class?

a. visitor pattern

b. mvc pattern

c. business delegate pattern

d. composite entity pattern

  • a. visitor pattern

Q. Which of the following is not one of the elements of a design pattern?

a. context

b. environment

c. problem

d. solution

  • d. solution

Q. Which design pattern is used in the Java Database connectivity JDBC(TM)?

a. builder design pattern

b. factory method design pattern

c. abstract factory design pattern

d. singletone design pattern

  • b. factory method design pattern

Q. Which design pattern you would you use to limit the class instantiation to one object?

a. factory method design pattern

b. builder design pattern

c. prototype design pattern

d. singleton design pattern

  • d. singleton design pattern

Q. A pattern that is intended to provide a means to define a family of algorithms and encapsulate each one as an object for interchangeable use

a. strategy pattern

b. factory pattern

c. observer pattern

d. adapter pattern

  • a. strategy pattern

Q. Which GRASP pattern is suitbale to handle alternatives based on type?

a. indirection

b. pure fabrication

c. polymorphism

d. creator

  • c. polymorphism

Q. A concrete class must have ...........

a. no program code for any of its methods

b. program code for all of its methods

c. program code for some of its methods

d. no program code for some of its methods

  • b. program code for all of its methods
Subscribe Now

Get All Updates & News