Question 1
Which of the following is a creational design pattern?
Observer
Strategy
Singleton
Command
Question 2
What does the Factory Method Pattern do?
Shares data between classes
Notifies observers
Creates objects without specifying the exact class
Destroys objects safely
Question 3
Which pattern provides a global point of access to a class instance?
Factory
Singleton
Adapter
Bridge
Question 4
The observer Pattern defines which type of relationship?
One-to-many
Many-to-one
one-to-one
Many-to-Many
Question 5
How does Singleton prevent multiple instances of a class?
By using a public constructor
By using private destructor
By making constructor private and using a static method to access instance
By using multiple constructors
There are 5 questions to complete.