

MCQOPTIONS
Saved Bookmarks
This section includes 5 Mcqs, each offering curated multiple-choice questions to sharpen your Junit knowledge and support exam preparation. Choose a topic below to get started.
1. |
The _______________ is a design pattern that adds behavior to an individual object, either statically or dynamically, without affecting the behavior of other objects from the same class. |
A. | Adapter Pattern |
B. | Bridge Pattern |
C. | Decorator Pattern |
D. | Composite Pattern |
Answer» D. Composite Pattern | |
2. |
The ___________ is a software design pattern that allows the interface of an existing class to be used as another interface. |
A. | Adapter Pattern |
B. | Bridge Pattern |
C. | Decorator Pattern |
D. | Composite Pattern |
Answer» B. Bridge Pattern | |
3. |
Applying the _________ pattern to a class means removing the creation of all object instances for which this class isn t directly responsible and passing any needed instances instead. |
A. | Message Passing |
B. | Inversion Of Control |
C. | Observer Pattern |
D. | Strategy Pattern |
Answer» C. Observer Pattern | |
4. |
The most important point to consider when writing a mock is that it shouldn t have any __________. |
A. | Redundancy |
B. | Abstraction |
C. | Matchers |
D. | Business Logic |
Answer» E. | |
5. |
To implement a custom URL protocol handler, the URL method __________ is called. |
A. | setURLStreamHandlerFactory |
B. | setURLStreamFactory |
C. | setURLStreamHandlerFactorySetting |
D. | setStreamHandlerFactory |
Answer» B. setURLStreamFactory | |