GofPatterns
SiteMap
Design Patterns Course
Behavioral Patterns
Creational Patterns
Structural Patterns
Singleton Pattern
«Prev
Next»
Design Patterns
Defining Patterns
Three Types Design Patterns
Behavioral Creational Structural
Design Pattern Components
Design Pattern Benefits
Design Pattern Scope
Three Categories Patterns
Singleton Patterns
Singleton Pattern-Quiz
Real World Examples
Design Pattern Elements
Creational Patterns
Factory Method Consequences
Factory Method-Exercise
Common Creational Patterns
Structural Patterns
Structural Pattern Example
Patterns Help Programmers
Common Structural Patterns
Flyweight Pattern
Flyweight Consequences
GOF Structural Patterns
Adapter Bridge Composite
Flyweight Suitability
Behavioral Patterns
Define Behavioral Patterns
Mediator Pattern Applicability
Observer Pattern Tradeoffs
Designing Software
How to Choose Pattern
Combine Design Patterns
Design Pattern Limitations
How To Apply Pattern
Consequences of the Singleton Pattern - Quiz
Each question is worth one point. Select the best answer for each question.
1.
What kind of pattern is Singleton?
Please select the best answer.
A.
object creational
B.
object structural
C.
class behavioral
D.
class creational
2.
The collaborations in a design pattern describe:
Please select the best answer.
A.
The classes that collaborate with one another to form the pattern
B.
How classes and objects outside the pattern interact with the pattern
C.
How functions in the pattern invoke other functions in the pattern
D.
How methods in the pattern invoke other methods in the pattern
3.
Which of the following is a consequence of the Singleton?
Please select the best answer.
A.
Pure static members lend themselves to subclassing
B.
Different subclasses can be configured randomly
C.
The Singleton object can be used by one object at a given time
D.
Access to the object is controlled
4.
A Singleton class would best be used to represent:
Please select the best answer.
A.
A parallel port
B.
A serial port
C.
A computer's audio device
D.
A monitor
Correct answers:
Your Score: 0
Submit
Quiz Explanation