Software Architecture Design Mcqs

Page No. 44

Which of these states about Object Adapter pattern?


aThe adapter can inherit adapter operations with appropriate semantics and pragmatics, override those with inappropriate semantics or pragmatics, and add operations needed for the new interface


bThe adapter may hold a reference to the adapter and delegate must work to the adapter object


cAll of the mentioned


dNone of the mentioned



A class (the adapter class) may be given a new interface by an adapter class in which of these ways?


aClass Adapter pattern


bObject Adapter pattern


cAll of the mentioned


done of the mentioned


View Answer All of the mentioned

A class (the adapter class) may be given a new interface by an adapter class in which of the two ways?


aThe adapter may subclass the adapter. The adapter can inherit adapter operations with appropriate semantics and pragmatics, override those with inappropriate semantics or pragmatics, and add operations needed for the new interface. This is the Class Adapter pattern


bThe adapter may hold a reference to the adapter and delegate must work to the adapter object. This approach is the Object Adapter pattern


c All of the mentioned


dNone of the mentioned



The Adapter patterns provide object-oriented adapters in which of theses varieties?


aOne uses inheritance


bone uses delegation


cAll of the mentioned


dNone of the mentioned


View Answer All of the mentioned

Which of the following is true for Adapter pattern?


aAn adapter or wrapper is a component that provides a new interface for an existing component


bAn Adapter or Wrapper pattern is a broker pattern that provides a new interface for existing software so that it can be reused


cAdaptation for reuse is an old technique that has been used since the beginning of software development


dAll of the mentioned


View Answer All of the mentioned

Which of the following are true for the singleton class?


aSingleton classes should be used whenever it is important that only a single instance of a class exist and that that single instance be widely accessible


bThe Singleton pattern can also be used, with slight modifications, when a limited number of instances greater than one are desired


cAccess restrictions are usually easy to add by restricting the visibility of either the class or the factory method


dAll of the mentioned


View Answer All of the mentioned

What are the drawbacks for singleton class?


aMany languages do not allow classes to be values assignable to variables.


bSingleton classes can be subclassed, and the singleton factory method can return a sub-class instance


cClasses can easily replace only single instances


dAll of the internship


View Answer All of the internship

Which class that can have only one instance?


aAdaptor Class


bProxy Class


cSingleton Class


dFactory class


View Answer Singleton Class

What are the types of factory pattern?


aFactory Method


bAbstract Method


cAll of the mentioned


dNone of the mentioned


View Answer All of the mentioned

The Factory patterns decouple clients from products by taking advantage of interfaces in two ways?


a The generator class with the factory methods cannot be changed, disallowing variability in factory method implementations


bInstances of a variety of classes that implement the product interface can be returned by a factory method, allowing great flexibility in results


cAll of the mentioned


dNone of the mentioned



Goto Page No.

Page 44 of 88

Alphabetical MCQs Categories

Here below You find all kind of categories of MCQs in alphabetical order.


"Comprehensive Collection of MCQs: Alphabetically Organized by Subject"

"Discover an extensive collection of multiple-choice questions (MCQs) neatly categorized by subject from A to Z. This resource is designed for anyone eager to explore various topics in a straightforward and organized manner. Whether you're a student preparing for exams, an educator seeking supplementary materials, or simply curious about different subjects, this compilation offers a convenient way to learn and assess your knowledge. With questions arranged alphabetically, navigation is effortless, allowing you to delve into subjects of interest at your own pace. Engage, learn, and expand your understanding with this accessible and comprehensive repository of MCQs!"


BolPakistan

bolpakistan.com.pk includes Job Mcqs and Pak Mcqs is the Top Largest Mcqs Forum in World, in which you can read Mcqs of All Subjects, PPSC test preparation, FPSC, NTS and PPSC PAST PAPERS, PPSC PAST MCQS. A Collection of Repeated MCQs for JOBs seekers.

Copyright © 2024, Designed & Developed by BolPakistan