Software Design Modeling (SDM) MCQs | Page - 22

Dear candidates you will find MCQ questions of Software Design Modeling (SDM) here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.

M

Mr. Dubey • 97.30K Points
Coach

Q. You want to minimize development cost by reusing methods? Which design pattern would you choose?

  • (A) adapter pattern
  • (B) singleton pattern
  • (C) delegation pattern
  • (D) immutable pattern
Show Answer Discuss Share

M

Mr. Dubey • 97.30K Points
Coach

Q. Which of the following describes the Builder pattern correctly?

  • (A) this pattern builds a complex object using simple objects and using a step by step approach.
  • (B) this pattern refers to creating duplicate object while keeping performance in mind.
  • (C) this pattern is used when creation of object directly is costly.
  • (D) this pattern is used when we need to decouple an abstraction from its implementation so that the two can vary independently.
Show Answer Discuss Share

M

Mr. Dubey • 97.30K Points
Coach

Q. Which of the following describes the MVC pattern correctly?

  • (A) in this pattern, a visitor class is used which changes the executing algorithm of an element class.
  • (B) this pattern is used to separate application\s concerns.
  • (C) this pattern is used to decouple presentation tier and business tier.
  • (D) this pattern is used in ejb persistence mechanism.
Show Answer Discuss Share

M

Mr. Dubey • 97.30K Points
Coach

Q. Which of the following is correct about Structural design patterns.

  • (A) these design patterns are specifically concerned with communication between objects.
  • (B) these design patterns concern class and object composition. concept of inheritance is used to compose interfaces and define ways to compose objects to obtain new functionalities.
  • (C) these design patterns provide a way to create objects while hiding the creation logic, rather than instantiating objects directly using new opreator.
  • (D) none of the above.
Show Answer Discuss Share

M

Mr. Dubey • 97.30K Points
Coach

Q. Which of the following describes the Filter pattern correctly?

  • (A) this pattern builds a complex object using simple objects and using a step by step approach.
  • (B) this pattern refers to creating duplicate object while keeping performance in mind.
  • (C) this pattern enables developers to filter a set of objects using different criteria and chaining them in a decoupled way through logical operations.
  • (D) this pattern is used when we need to decouple an abstraction from its implementation so that the two can vary independently.
Show Answer Discuss Share

M

Mr. Dubey • 97.30K Points
Coach

Q. Which of the following describes the Flyweight 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 is primarily used to reduce the number of objects created and to decrease memory footprint and increase performance.
  • (D) this pattern hides the complexities of the system and provides an interface to the client using which the client can access the system.
Show Answer Discuss Share

M

Mr. Dubey • 97.30K Points
Coach

Q. Which of the following describes the Behavioral pattern correctly?

  • (A) this type of patterns provide a way to create objects while hiding the creation logic, rather than instantiating objects directly using new opreator
  • (B) this type of patterns concern class and object composition. concept of inheritance is used to compose interfaces and define ways to compose objects to obtain new functionalities.
  • (C) this type of pattern are specifically concerned with communication between objects.
  • (D) this type of pattern are specifically concerned with the presentation tier.
Show Answer Discuss Share

M

Mr. Dubey • 97.30K Points
Coach

Q. Given the following scenario: You want to create families of related objects, to be used interchangeably to configure you application. What is most appropriate GoF pattern to use?

  • (A) chain of responsibility
  • (B) abstract factory
  • (C) builder
  • (D) observer
Show Answer Discuss Share

M

Mr. Dubey • 97.30K Points
Coach

Q. What are the consequences of applying the GOF Singleton pattern?

  • (A) it introduces thread safety issue when the singleton instance is instantiated on demand
  • (B) the client code can creates multiple instances at run time
  • (C) it reduces of the class hierarchy as compared to the other factory design patterns
  • (D) it makes it easier for a certain family of objects to work together
Show Answer Discuss Share

Jump to

Download our easy to use, user friendly Android App from Play Store. And learn MCQs with one click.

Image