Computer Programming MCQs

5739 MCQs  (Page 359 of 574)

Which mechanism is applied to use a design pattern in an OO system ?
A. Inheritance
B. Composition
C. All of the mentioned
D. None of the mentioned
The use of design patterns for the development of object-oriented software has important implications for____________________?
A. Component-based software engineering
B. Reusability in general
C. All of the mentioned
D. None of the mentioned
PRD stands for____________________?
A. Product requirement document
B. Project requirement document
C. Product restrictions document
D. None of the mentioned
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
Which of the following is a design pattern?
A. Behavioral
B. Structural
C. Abstract factory
D. All of the mentioned
Which design pattern defines one-to-many dependency among objects ?
A. Singleton pattern
B. Facade pattern
C. Observer pattern
D. Factory method pattern
In factory method pattern, the framework must instantiate classes but it only knows about the abstract classes, which it cannot initiate. How would one solve this problem ?
A. Encapsulating the knowledge of which document subclass to is to be created and
B. Moving this knowledge out of the framework
C. Instantiating the application specific documents without knowing their class
D. All of the mentioned
You want to avoid multiple inheritance. Which design pattern would you choose ?
A. Abstraction-occurrence pattern
B. Player-role pattern
C. General hierarchy pattern
D. Singleton pattern