Search Header Logo

Design Patterns Quiz

Authored by Alberto Tagliaferro

Computers

University

Used 2+ times

Design Patterns Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

HappyDays is a platform that offers full-optional vacation package management services. To engineer the definition of reservations, HappyDays platform uses a rigorous procedure that includes a finite number of known steps to build a reservation. The platform is therefore flexible and easily allows HappyDays managers to add new booking categories (if new hotels or products/services are added to the platform the corresponding reservation can be realized).

Abstract Factory

Builder

Decorator

Chain of Responsibility

Observer

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

HappyDays is a platform that offers full-optional vacation package management services. In HappyDays, customer loyalty is rewarded through appropriate discounts that depend on the customer's behavior over time. In this way, a basic customer can be rewarded with special bonuses that decorate his or her functionality that builds a reservation with dedicated discounts. This way, the functionality that creates the reservations can apply specific discounts based on the customer category, which are base/silver/gold and platinum.

Abstract Factory

Builder

Decorator

Chain of Responsibility

Observer

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Each generic vehicle contains a collection of textual descriptors, which are added to a base vehicle to specify its characteristics (e.g., manufacturer, model, etc.) by an additive mechanism.

Abstract Factory

Builder

Decorator

Chain of Responsibility

Observer

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Operators direct the creation of activity instances and select which type of activity to build. Activities are always built by providing an identifier, a date, and the start and end time of the activity.

Abstract Factory

Builder

Decorator

Chain of Responsibility

Observer

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Each statistical tab is updated in real time by the inverters, which notify a tab of the most recent data that are of interest to it. Each tab, therefore, listens for only those updates it uses to compute statistics.

Abstract Factory

Builder

Decorator

Chain of Responsibility

Observer

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

In order to make the analysis of children's letters flexible and extendable, a sequence of steps is used, allowing easy addition of new steps as new toys are released. Each step identifies a specific gift category through a handler implementing suitable artificial intelligence. Each handler processes the letter and is associated with a particular gift class. At the start of the analysis, the system allocates a gift package, and each handler adds identified items to it.

Abstract Factory

Builder

Decorator

Chain of Responsibility

Observer

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Since a package is created, each team member assigned to the package in fact observes the removal event from the queue.

Abstract Factory

Builder

Decorator

Chain of Responsibility

Observer

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers