A. Singleton pattern
B. Facade Pattern
C. Observer pattern
D. Factory method pattern
Explanation: Observer pattern defines one-to-many dependency among objects so that when one object changes its state, all its dependents are notified.
Related Mcqs:
- Which of the following term is best defined by the statement:”a structural relationship that specifies that objects of one thing are connected to objects of another” ?
A. Association
B. Aggregation
C. Realization
D. Generalization - 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 - 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 - 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 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 - 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 - _______________________ defines the properties of a data object and take on one of the three different characteristics ?
A. data object
B. attributes
C. relationships
D. data object and attributes - In which test design each input is tested at both ends of its valid range and just outside its valid range ?
A. Boundary value testing
B. Equivalence class partitioning
C. Boundary value testing AND Equivalence class partitioning
D. Decision tables