Search Header Logo

Design Patterns Quiz

Authored by Pawan M

Other

University

Design Patterns Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes the Adapter Design Pattern?

Converts a class into an interface

Acts as a bridge between two incompatible interfaces

Changes the functionality of an existing class

Directly inherits from two unrelated classes

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the Adapter Design Pattern, the component that the client expects to interact with is known as:

Adaptee

Adapter

Client

Target Interface

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which real-world analogy best fits the Adapter Design Pattern?

A password-protected door

A translator at a UN conference

A traffic signal system

A personal diary lock

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The Proxy Design Pattern primarily deals with:

Speeding up the network connection

Providing a placeholder to control access

Replacing a class hierarchy

Converting one data format to another

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the Proxy Pattern, the actual object which performs the real work is called:

RealSubject

Subject

Proxy

Handler

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is NOT a component in the Adapter Design Pattern?

Client

Proxy

Target Interface

Adaptee

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In chaining proxies, each proxy:

Ignores the request and forwards it

Adds behavior or checks before forwarding

Acts as the final object always

Removes all intermediate checks

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?