AlgoMaster Logo

Creational Design Patterns - Quiz

Creational Design Patterns Quiz

17 quizzes

1
Multiple Choice

Which creational design pattern ensures there is only one global access point to an object?

2
Multiple Choice

Which design pattern is best for ensuring related product objects are compatible across different themes or platforms?

3
Multiple Choice

Why is it often preferable to use a Builder over telescoping constructors for complex objects?

4
Multiple Choice

A design needs to produce objects that are costly to configure and only differ slightly in settings. Which pattern is most suitable?

5
Multiple Choice

When using the Factory Method pattern, who determines the concrete product’s type at runtime?

6
Multiple Choice

What is a core principle achieved by using the Factory Method pattern in object creation?

7
Multiple Choice

What is a common risk when implementing Singleton in multithreaded applications?

8
Multiple Choice

Which pattern provides a way to create a complex object by specifying its type and content step-by-step?

9
Multiple Choice

How does the Prototype pattern help when concrete classes are unknown or inaccessible?

10
Multiple Choice

If a system must switch easily between different product families (such as UI components for Windows and macOS), which design principle is best supported by Abstract Factory?

11
Multiple Choice

Which scenario is most suitable for the Singleton pattern?

12
Multiple Choice

What is the main advantage of delegating object creation to subclasses using Factory Method?

13
Matching

Match each creational pattern with its best use case

Click an item on the left, then click its match on the right. Click a matched item to unmatch.

14
Matching

Match the pattern to its main UML diagram structure

Click an item on the left, then click its match on the right. Click a matched item to unmatch.

15
Sequencing

Order the steps to correctly implement the Builder pattern

Drag and drop to reorder, or use the arrows.

16
Sequencing

Sequence the process of creating a clone using the Prototype pattern

Drag and drop to reorder, or use the arrows.

17
Sequencing

Order the phases to introduce Abstract Factory in a multi-platform UI project

Drag and drop to reorder, or use the arrows.