Software Architecture Design Mcqs

Page No. 45

Which are the several reasons for using generator patterns?


aProduct Creation Control


bProduct Configuration Control


cClient and Product Decoupling


dAll of the mentioned


View Answer All of the mentioned

When a generator assumes responsibility for product object creation in a factory method,which of the following capabilities become available?


aAccess to product constructors can be restricted


bPrivate data can be provided to new product objects


cProduct objects can be configured after creation


dAll of the mentioned


View Answer All of the mentioned

Which of the following is true about factory method?


aA factory method is a non-constructor operation that creates and returns class instances


bFactory methods are widely used in mid-level design patterns and in object-oriented programming in general


cFactory methods create new instances using constructors or cloning, so they do not rely on any special technique for class instantiation


dAll of the mentioned


View Answer All of the mentioned

Which of the following truly describes the structure of Generator pattern?


aA generator pattern has a Client that needs an instance of a Product class


bA Generator that creates or obtains access to such an instance on behalf of the Client


cAll of the mentioned


dNone of the mentioned


View Answer All of the mentioned

Most object-oriented languages and systems provide which of these ways to create new objects?


aInstantiating a class using one of its constructors


bCloning an existing object


cAll of the mentioned


dNone of the mentioned


View Answer All of the mentioned

Which of the following are the consequences for Command pattern?


aEvent-driven design is facilitated


bMaking event-handling code easy to find, change, and reuse


cThe invoker is loosely coupled to both the command and client classes,making them easy to change


dAll of the mentioned


View Answer All of the mentioned

Which of the several aspects of the Command pattern may be varied or elaborated to help achieve particular design goals


aAn invoker may accept registration of more than one command


bThe invoker may offer operations for un-registering one or more commands


cAn invoker may offer several kinds of registrations for different kinds of events


dAll of the mentioned


View Answer All of the mentioned

Which among these are advantages for Function Class?


aAdditional features can be added to the function class, enhancing its capabilities


bThe function class can include other data and operations the encapsulated operation needs


cAll of the mentioned


dNone of the mentioned


View Answer All of the mentioned

Which of the following are consequences for command pattern?


aReactor patterns provide event-driven design models


bThey decouple clients and targets


cEncapsulate reactions to event


dNone of the mentioned


View Answer None of the mentioned

The reactor patterns provide a good model for event-driven portions of a program for which of the following reasons?


aClient and Target Decoupling


bClient Decomposition


cOperation Encapsulation


dAll of the mentioned


View Answer All of the mentioned

Goto Page No.

Page 45 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