Explore topic-wise MCQs in Software Design.

This section includes 9 Mcqs, each offering curated multiple-choice questions to sharpen your Software Design knowledge and support exam preparation. Choose a topic below to get started.

1.

WHICH_ARE_THE_DRAWBACK_FOR_MEDIATOR_PATTERN??$

A. It may also increase collaborator cohesion
B. Forcing collaborator interaction through the mediator may compromise performance
C. All of the mentioned
D. None of the mentioned
Answer» C. All of the mentioned
2.

Which_of_the_following_is_consequence_of_mediator_class?$

A. They makes a sub-system easier for clients to use
B. Lowers the coupling between the client and the sub-system
C. Increase re-usability by adapting a sub-system’s interface to client needs
D. It encapsulates an interaction, making the interaction easier to change
Answer» E.
3.

The Mediator pattern has which of the following advantages?

A. It decouples collaborators, making them more changeable and reusable
B. It centralizes control of an interaction in the mediator class, making it easier to change, thus increasing modifiability
C. It simplifies the collaborators, making them easier to understand, and hence to change
D. All of the mentioned
Answer» E.
4.

Which of the following does not follow the sequence of the mediator pattern?

A. As in any broker pattern, the Mediator receives a request for service at last
B. It then controls an interaction with the collaborating colleagues to supply the service
C. If one collaborator needs help from another, it notifies the Mediator object, which obtains the needed service from another collaborator
D. None of the mentioned
Answer» B. It then controls an interaction with the collaborating colleagues to supply the service
5.

Which of the following is a type of broker pattern?

A. Mediator
B. Facade
C. None of the mentioned
D. All of the mentioned
Answer» E.
6.

Which of the following is for Facade Pattern?

A. Interaction is begun by one of the collaborators or a client object outside the collaboration
B. The object directs the collaboration, with all communication going between it and the colleagues in the interaction
C. All of the mentioned
D. None of the mentioned
Answer» E.
7.

Which of the pattern all the classes coupling is reduced?

A. Iterator
B. Facade
C. Mediator
D. Proxy
Answer» D. Proxy
8.

Which of the following i correct?

A. The Mediator pattern provides a means of increasing coupling
B. In the Mediator pattern, interacts with one another, collaborating objects and with a special mediator class
C. The objects are coupled only to the mediator, which contains all the code for coordinating the collaboration
D. All of the mentioned
Answer» D. All of the mentioned
9.

Which of the following belongs to iterator pattern?

A. They delegate activities to other portions of the sub-system to which they provide an interface
B. The details of such delegations depend on the sub-system in question
C. The behavior follows the general outline of a broker pattern interaction
D. None of the mentioned
Answer» E.