Design Patterns Quiz II

Design Patterns Quiz II

University

10 Qs

quiz-placeholder

Similar activities

Ulangan Harian 1

Ulangan Harian 1

9th Grade - University

15 Qs

ICT BEL 4

ICT BEL 4

4th Grade - University

10 Qs

แบบทดสอบหลังเรียน (Post-Test) - วันที่ 2 ภาคปฏิบัติ (ช่วงบ่าย)

แบบทดสอบหลังเรียน (Post-Test) - วันที่ 2 ภาคปฏิบัติ (ช่วงบ่าย)

University

10 Qs

QuizIzz

QuizIzz

University

10 Qs

oops bootcamp

oops bootcamp

University

10 Qs

තාර්.කික ද්වාර සමඟ බූලීය වීජ තර්.කය

තාර්.කික ද්වාර සමඟ බූලීය වීජ තර්.කය

10th Grade - University

10 Qs

Design Patterns Quiz II

Design Patterns Quiz II

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

ushapreethi p

Used 5+ times

FREE Resource

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

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?