
Design Patterns Quiz II

Quiz
•
Information Technology (IT)
•
University
•
Medium
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
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University