Design Patterns Quiz

Design Patterns Quiz

University

20 Qs

quiz-placeholder

Similar activities

DPAT test2

DPAT test2

University

20 Qs

Intro to HCI Quiz

Intro to HCI Quiz

8th Grade - University

15 Qs

DPAT test

DPAT test

University

20 Qs

Interior Design Test

Interior Design Test

University

15 Qs

Small N design

Small N design

University

17 Qs

Introduction to Robotics

Introduction to Robotics

University

18 Qs

Kuis Administrasi Jaringan

Kuis Administrasi Jaringan

University

20 Qs

Design Patterns Quiz

Design Patterns Quiz

Assessment

Quiz

Other

University

Hard

Created by

Pawan M

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?