Search Header Logo

Design Patterns Quiz II

Authored by ushapreethi p

Information Technology (IT)

University

Used 5+ times

Design Patterns Quiz II
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Classes with built-in interface adaptation is known as

Two way adapter

Pluggable adapter

Interface adapter

Parametrized adapter

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Choose the wrong statement (s)

i)  Character code of an alphabet  is an example for intrinsic state

ii)  Style of an alphabet is an example for extrinsic state

iii)    Extrinsic state is stored in flyweight pool

iv)   Intrinsic state is specified by client

iv only

i and ii only

iii and iv only

iii only

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Choose the wrong statement

Flyweight pattern is related to composite pattern

Adapter pattern is also known as wrapper

Decorators provide a flexible alternative to delegation for extending functionality

There is an aggregation relationship available between decorator and component

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Match the Pattern and their other names

Pattern Other names

a.       Adapter i.  Surrogate

b.      proxy ii.  Wrapper

c.       Bridge iii. Handle

d.      Decorator iv. Wrapper

(A) a-ii, b-i, c-iii, d-iv

(B) a-iii, b-iv, c-i, d-ii

(C) a-ii, b-iii, c-iv, d-i

(D) a-iv, b-iii, c-ii, d-i

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In composite pattern the client reaches at the

(A) abstract

(B) component

(C) composite

(D) leaf

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following describes the Bridge pattern correctly?

(A) This pattern builds a complex object using simple objects and using a step by step approach

(B) This pattern refers to creating duplicate object while keeping performance in mind

(C) This pattern is used when creation of object directly is costly

(D) This pattern is used when we need to decouple an abstraction from its implementation so that the two can vary independently

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following pattern can be considered, when extension by sub classing is impractical?

a) composite

b) flyweight

c) proxy

d) decorator

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?