

MCQOPTIONS
Saved Bookmarks
This section includes 13 Mcqs, each offering curated multiple-choice questions to sharpen your Software Engg knowledge and support exam preparation. Choose a topic below to get started.
1. |
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 |
Answer» C. Observer | |
2. |
Which design pattern defines one-to-many dependency among objects?$ |
A. | Singleton pattern |
B. | Facade Pattern |
C. | Observer pattern |
D. | Factory method pattern |
Answer» D. Factory method pattern | |
3. |
Facade_pattern_promotes_weak_coupling_between_subsystem_and_its_clients.$ |
A. | True |
B. | False |
Answer» B. False | |
4. |
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 |
Answer» E. | |
5. |
Facade pattern couples a subsystem from its clients. |
A. | True |
B. | False |
Answer» C. | |
6. |
Design pattern is a solution to a problem that occurs repeatedly in a variety of contexts? |
A. | True |
B. | False |
Answer» B. False | |
7. |
The recurring aspects of designs are called design |
A. | patterns |
B. | documents |
C. | structures |
D. | methods |
Answer» B. documents | |
8. |
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 |
Answer» C. General Hierarchy Pattern | |
9. |
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 |
Answer» D. Immutable Pattern | |
10. |
Which of the following is a design pattern? |
A. | Behavioral |
B. | Structural |
C. | Abstract Factory |
D. | All of the mentioned |
Answer» E. | |
11. |
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 |
Answer» D. None of the mentioned | |
12. |
Design patterns does not follow the concept of software reuse. |
A. | True |
B. | False |
Answer» C. | |
13. |
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 |
Answer» D. None of the mentioned | |