Design Patterns Question Bank
Design Patterns Question Bank
:
:
:
:
:
:
DESIGN PATTERNS
A70530
IV B. Tech I Semester
INFORMATION TECHNOLOGY
2016 2017
Mrs. S.Laxmi, Assistant Professor, IT
OBJECTIVES
To meet the challenge of ensuring excellence in engineering education, the issue of quality needs to be
addressed, debated and taken forward in a systematic manner. Accreditation is the principal means of
quality assurance in higher education. The major emphasis of accreditation process is to measure the
outcomes of the program that is being accredited.
In line with this, Faculty of Institute of Aeronautical Engineering, Hyderabad has taken a lead in
incorporating philosophy of outcome based education in the process of problem solving and career
development. So, all students of the institute should understand the depth and approach of course to be
taught through this question bank, which will enhance learners learning process.
PART A (SHORT ANSWER QUESTIONS)
S. No
Question
Blooms
Course
Taxonomy Level Outcome
UNIT I
INTRODUCTION:WHAT IS A DESIGN PATTERN
PART A (SHORT ANSWER QUESTIONS)
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
1|Page
Knowledge
Knowledge
Analyze
Understand
Knowledge
Knowledge
Apply
Understand
Knowledge
Knowledge
2
1
1
2
2
1
6
4
2
2
S. No
Question
Blooms
Course
Taxonomy Level Outcome
2
Knowledge
4
Understand
2
Analyze
4
Understand
2
Knowledge
Knowledge
Understand
Understand
Knowledge
2
1
1
Apply
knowledge
Knowledge
Evaluate
Knowledge
Analyze
Understand
Knowledge
Knowledge
Knowledge
Understand
8
9
10
11
12
13
14
15
PART C (PROBLEM SOLVING AND CRITICAL THINKING QUESTIONS)
1.
A reputed software company is developing CAD software. It is
2.
3.
4.
5.
6.
7.
8.
9.
2|Page
2
3
2
4
3
2
2
2
2
2
Understand
Understand
Apply
Knowledge
Understand
4
4
2
Analyze
Knowledge
Knowledge
4
4
4
Understand
S. No
10.
Question
List and explain the reusable object oriented design
aspects of a pattern.
Blooms
Course
Taxonomy Level Outcome
4
Knowledge
UNIT II
A CASE STUDY: DESIGNING A DOCUMENT EDITOR
PART A (SHORT ANSWER QUESTIONS)
1.
Give the meaning of WYSIWYG.
2.
Define Lexi.
3.
Define an abstract class.
4.
Write the meaning of a document.
5.
Differentiate compositor and composition.
6.
Define formatting.
7.
Define an Iterator class.
8.
Define creational patterns.
9.
List five types of creational patterns.
10. Define abstract factory design pattern.
11. Define builder pattern.
12. Give example of class diagram.
13. Define structure and applicability of abstract factory method.
14. Define the User operations
15. Define Prototype design pattern
PART B (LONG ANSWER QUESTIONS)
1.
Explain the process of recursive composition in building a
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
document.
Explain in detail about the Glyph abstract class.
Discuss the goals and constraints in choosing an internal
representation for a document.
Explain partial Glyph class hierarchy with a neat diagram.
Explain composition and compositor class relationship with a
neat diagram.
Define formatting. How can the textual analysis problem of
document editor be solved using design patterns?
Discuss the two embellishments that can be added to Lexis
user interface. Signify the role of decorator pattern in
embellishment.
Explain about abstracting object creation in detail.
Memorize the useful techniques for implementing the abstract
factory pattern.
Give the sample code for abstract factory design pattern.
Explain the implementation of abstract factory.
Discuss about structure, applicability, participants of abstract
factory method.
Discuss the implementation issues of builder design pattern.
Explain the structure of builder design pattern with class
diagram and describe the collaboration with a sequence
diagram.
3|Page
Understand
Knowledge
Knowledge
Apply
Analyze
Knowledge
Knowledge
Knowledge
Knowledge
Knowledge
Knowledge
Understand
Knowledge
Understand
Understand
Understand
3
2
2
6
2
2
2
2
2
1
1
2
2
4
4
2
Understand
Understand
3
3
Understand
Understand
3
2
Knowledge
Understand
Understand
Evaluate
2
2
Understand
Understand
Understand
2
2
4
Understand
Understand
4
3
S. No
15.
Question
Blooms
Course
Taxonomy Level Outcome
2
Knowledge
Knowledge
Understand
Understand
Knowledge
Knowledge
Knowledge
Knowledge
Knowledge
9.
Knowledge
10.
Understand
4
2
2
4
4
5
3
3
5
2
UNIT III
STRUCTURAL PATTERN
PART A (SHORT ANSWER QUESTIONS)
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
4|Page
Knowledge
Knowledge
Understand
Knowledge
Knowledge
Knowledge
Knowledge
Knowledge
Knowledge
Knowledge
Knowledge
Knowledge
Knowledge
Understand
Understand
2
3
3
2
3
4
3
2
2
1
3
2
1
2
2
1
5
1
2
3
2
2
2
2
3
3
2
2
2
2
2
2
4
2
4
2
2
8.
Understand
9.
Understand
5|Page
10.
UNIT IV
BEHAVIORAL PATTERNS
PART A (SHORT ANSWER QUESTIONS)
1.
Define behavioral pattern.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
6|Page
Knowledge
Knowledge
Knowledge
Knowledge
Knowledge
Knowledge
Knowledge
Knowledge
Apply
Knowledge
Knowledge
Understand
Knowledge
Knowledge
Knowledge
Knowledge
2
2
2
3
3
2
6
2
1
2
2
2
2
3
Understand
Understand
Understand
Understand
Understand
Understand
Understand
2
4
4
4
4
4
3
Understand
Understand
Understand
Understand
2
2
2
2
Understand
Knowledge
Understand
Knowledge
2
2
2
2
4
2
2
4
4
4
4
2
4
UNIT V
BEHAVIORAL PATTERNS-II
PART A (SHORT ANSWER QUESTIONS)
1. Write the intent of memento pattern.
2. Sketch the structure of memento pattern.
3. Define the phrase objects for states.
4. Define state pattern.
5. Sketch the structure of state pattern.
6. List the situations where state pattern can be used.
7. Define table driven approach.
8. Write the sample code for Strategy pattern
9. Write about the collaborations of Visitor pattern
10. Explain about the consequences of Template pattern
11. Write about the Pattern community
12. Explain about the patterns in software
13. Write about the lifecycle of Object Oriented Software
14. Explain how objects are used as arguments
15. Define double-dispatch and single-dispatch
Apply
Knowledge
Knowledge
Knowledge
Knowledge
Knowledge
Knowledge
Understand
Knowledge
Knowledge
Knowledge
Knowledge
Understand
Knowledge
Understand
Understand
Understand
3
3
3
2
3
2
4
6
5
3
3
5
4
4
3
2
2
pattern.
3. Explain how design patterns affect the way object-oriented
Understand
software is designed.
4. Discuss the several ways the design pattern affect the way
Understand
object-oriented software is designed.
5. Discuss design patterns as a supplement to the existing
Understand
methods.
6. Discuss the history of design patterns.
Understand
7. Differentiate Alexanders patterns and Design patterns.
Analyze
8. Write about the two ways of grouping the patterns according Apply
to Christopher Alexander.
9. Compare and contrast between Abstract Class vs Concrete
Analyze
Class
10. Discuss about Alexanders pattern languages
Knowledge
11. Discuss a briefly history of design patterns
Knowledge
12. Discuss the consequences and implementation issues of
Knowledge
Visitor design pattern.
13. Discuss about intent, motivation, structure, applicability and
Knowledge
consequences of a Template Method behavioral pattern.
14. Explain the State design pattern and discuss the
Understand
consequences and implementation issues.
15. Write the sample code for Template method and Visitor
Understand
patterns
PART C (PROBLEM SOLVING AND CRITICAL THINKING QUESTIONS)
1. Discuss with suitable scenarios, how state, strategy and
Understand
visitor patterns can solve design problems.
2. What to except from design pattern
Understand
3. Explain the importance of object diagram in modeling, With
Knowledge
the help of a suitable example
4. What is a template? In which way a design pattern will be
Understand
described. Explain in detail
5. Explain the common causes for redesign a design pattern
Understand
6. Explain the role of behavioral patterns in design of the patterns.
Understand
7. What is the key idea of state pattern? Explain it in detail.
Understand
8. Explain Documentation, Learning Aid and An Adjunct to
Knowledge
existing systems in detail.
9. Should Communication encapsulated or distributed
Knowledge
Explain.
10. Explain Decoupling senders and receivers.
Knowledge
HOD, IT
8|Page
3
3
4
2
4
5
5
2
2
4
3
3
5
2
5
4
2
2
2
2
4
4
4