A. Adapter Pattern
B. Singleton Pattern
C. Delegation pattern
D. Immutable Pattern
Explanation: The delegation pattern is a design pattern in OOP where an object, instead of performing one of its stated tasks, delegates that task to an associated helper object.
Advertisement
Related Mcqs:
- 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...
- 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...
- 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...
- Which of the following is not needed to develop a system design from concept to detailed object-oriented design ?
- A. Designing system architecture B. Developing design models C. Specifying interfaces D. Developing a debugging system...
- 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...
- Which pattern prevents one from creating more than one instance of a variable ?
- A. Factory Method B. Singleton C. Observer D. None of the mentioned...
- 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...
- Which of the following is not a part of a test design document ?
- A. Test Plan B. Test Design Specification C. Test Case Specification D. Test Log...
- Which diagram evolved from a desire to develop a procedural design representation that would not allow violation of the structured constructs ?
- A. State transition diagram B. Box diagram C. ER diagram D. None of the mentioned...
Advertisement