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

From 406 to 420 of 445

Q. What are the advantages of Factory objects?

a. separate the responsibility of complex creation into cohesive helper objects.

b. hide potentially complex creation logic.

c. allow introduction of performance-enhancing memory management strategies, such as object caching or recycling.

d. all of above

  • d. all of above

Q. Classes that contain strongly related functionalities are described as having ____________.

a. high cohesion

b. high coupling

c. strong cohesion

d. none of above

  • a. high cohesion

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

  • c. delegation pattern

Q. Can We Create A Clone Of A Singleton Object?

a. true

b. false

  • a. true

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.

  • a. this pattern builds a complex object using simple objects and using a step by step approach.

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.

  • b. this pattern is used to separate application\s concerns.

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.

  • 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.

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.

  • b. this pattern refers to creating duplicate object while keeping performance in mind.

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.

  • c. this pattern is primarily used to reduce the number of objects created and to decrease memory footprint and increase performance.

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.

  • c. this type of pattern are specifically concerned with communication between objects.

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

  • a. it introduces thread safety issue when the singleton instance is instantiated on demand

Q. What are the consequences of applying the abstract factory patter?

a. it will be much easier to introduce new family of products

b. it makes it easier for a certain family of objects to work together

c. it makes the designed product families exchangeable

d. both 2 & 3

  • d. both 2 & 3

Q. What is a software architectural pattern?

a. the structure of the major subsystemsof a system

b. the components and connectors ina software architecture

c. a small group of collaboratingobjects

d. a recurring architecture used in a variety of systems

  • d. a recurring architecture used in a variety of systems
Subscribe Now

Get All Updates & News