100% found this document useful (1 vote)
2K views

Design Patterns Question Bank

This document provides information about a design patterns tutorial question bank for a course on design patterns being taught to fourth year information technology students. It includes the course details, objectives of the question bank which are to enhance learning through problems focused on outcomes, and three parts consisting of short answer questions, long answer questions, and problem solving/critical thinking questions on three units covering introduction to design patterns, a case study on designing a document editor, and structural patterns. The questions cover various design pattern concepts and require students to explain, compare, analyze, apply and evaluate different patterns.

Uploaded by

Rajesh Kanna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
2K views

Design Patterns Question Bank

This document provides information about a design patterns tutorial question bank for a course on design patterns being taught to fourth year information technology students. It includes the course details, objectives of the question bank which are to enhance learning through problems focused on outcomes, and three parts consisting of short answer questions, long answer questions, and problem solving/critical thinking questions on three units covering introduction to design patterns, a case study on designing a document editor, and structural patterns. The questions cover various design pattern concepts and require students to explain, compare, analyze, apply and evaluate different patterns.

Uploaded by

Rajesh Kanna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

INFORMATION TECHNOLOGY

TUTORIAL QUESTION BANK


Course Name
Course Code
Class
Branch
Year
Course Faculty

:
:
:
:
:
:

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.

Define design pattern.

List the four elements of design patterns.


Distinguish a class and an object.
Give an example for class structure.
Sketch MVC architecture.
State the meaning of a solution.
Write the different sections of design patterns.
Give the meaning of Intent.
List the four essential elements of design pattern
Define catalog of design patterns

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

11. Define the two categories on which design pattern depends


12. Explain how design patterns solve design problems
13. Differentiate Inheritance and composite
14. Explain how to select a design pattern
15. List out the patterns used in design patterns
PART B (LONG ANSWER QUESTIONS)
1
List the advantages of design patterns. Write short notes on
2
3
4
5
6
7

use of design patterns.


Discuss the MVC architecture in small talk.
Explain how to describe design patterns.
List the different sections of design patterns. Explain about
them.
Name the patterns along with their intents that are included in
the catalog of design patterns.
State and explain the classification of design patterns.
List the various ways of organizing the design patterns.
Compare inheritance verses parameterized types.
Explain the Design patterns relationships
Compare run-time and compile-time structure
List the common causes for redesigning of design patterns
Explain the Frameworks in detail
Write about the role of Toolkit in designing pattern
Explain how Delegation is used in design pattern
Explain the Catalogs of design patterns

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.

required that the software should read licenses details, number


of simultaneous users, permitted features etc., from a
configuration file with a specific syntax. Design the software
with suitable design pattern and explain with a class diagram.
Briefly discuss the consequences and implementation issues.
Discuss the following aspects of behavioral patterns briefly: (i)
Should communication be encapsulated or distributed. (ii)
Decoupling senders and receivers.
Write about (i) documentation and learning aid. (ii)
Alexanders pattern languages.
Write the code for connecting two objects by applying
suitable design pattern.
Explain about which optimization technique is used to hide
the data from client.
Distinguish between inheritance and composition
What is the use of object diagram in modeling? Explain.
Explain the step - by - step approach for selecting the design
pattern.
Explain the compile time structure of a object oriented program

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

Describe in detail about how Multiple Window Systems is


supported

Blooms
Course
Taxonomy Level Outcome
2
Knowledge

PART C (PROBLEM SOLVING AND CRITICAL THINKING QUESTIONS)


1.
2.
3.
4.
5.
6.
7.
8.

Explain how design patterns can solve the design problems


of a document editor.
Discuss in detail about the representation of a document
structure
What is the importance of creational patterns in design of
particular pattern?
Draw and explain the structure of abstract factory and also
explain the various participants involved in it.
Explain the role of formatting in creation of a document
editor
What are the liabilities and techniques for implementing the
abstract factory pattern? Explain them.
Draw and explain the interaction diagram that illustrates the
cooperation between a builder and director.
What are the different criteria that select the right pattern
for a given problem?

Knowledge
Understand
Understand
Knowledge
Knowledge
Knowledge
Knowledge
Knowledge

9.

What is the relationship between different participants present in


prototype pattern?

Knowledge

10.

Explain the importance of Look-and-Feel standards in


design of a document

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.

Define structural patterns.


List different types of structural patterns.
Discuss the role of participants.
Define bridge pattern.
Define Intent and Consequences of bridge pattern.
Define composite design pattern.
Sketch the structure of composite pattern.
Define decorator pattern.
List the use of decorator pattern.
Sketch the structure of decorator pattern.
List the benefits of decorator pattern.
Define Faade pattern.
Sketch the structure of Faade pattern.
Define composite pattern
Define Proxy pattern

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

PART B (LONG ANSWER QUESTIONS)


1.
Describe the intent, motivation and applications of
knowledge
composite patterns.
2.
Discuss the importance of implementation in composite
Understand
structural pattern.
3.
Give the intent, applicability and structure of composite
Understand
design pattern and explain it.
4.
Explain the structure of composite pattern with a class
Understand
diagram.
5.
Describe the consequences of composite design pattern.
knowledge
6.
Explain composite pattern with an example from drawing
Understand
editor.
7.
Explain the structure of decorator pattern with suitable
Understand
example.
8.
Explain the motivation for decorator method with relevant
Understand
patterns.
9.
Explain the structure of decorator design pattern with a
Understand
class diagram.
10. Explain the structure of faade design pattern with class
Understand
diagram and consequences.
11. Explain the consequences of flyweight method with its
Understand
structure.
12. Explain structure of flyweight pattern with suitable
Understand
example.
13. Explain the structure of decorator design pattern with a
Understand
class diagram.
14. Explain the structure of Proxy design pattern with a class
Understand
diagram.
15. Explain the structure of Adapter design pattern with class
Understand
diagram and consequences.
PART C (PROBLEM SOLVING AND CRITICAL THINKING QUESTIONS)
1.
Explain the significance of proxy patterns with a suitable
Understand
example.
2.
Explain the applicability and collaborations of a adapter
Understand
pattern
3.
Explain how to decouple the abstraction from its
Knowledge
implementation.
4.
Write and explain the consequences, applicability and
Understand
implementation issues of a flyweight patterns.
5.
Explain the role of creational patterns in design of the
Knowledge
patterns
6.
Distinguish between abstract class and concrete class
Analyze
7.
Explain the role of interaction diagrams in design patterns.
Understand

1
5
1
2
3
2
2
2
2
3
3
2
2
2
2

2
2
4
2
4
2
2

8.

What are the different issues to be considered while applying the


decorator pattern?

Understand

9.

What relation exists between the different participants


involved in composite pattern? Explain it in detail.

Understand

5|Page

10.

Draw and explain the multiple inheritance interface that


illustrates relation between different participants in the
adapter pattern.

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.

Define behavioral class pattern.


Define behavioral object pattern.
Define command pattern.
Sketch sequence diagram for any example pattern.
Sketch the structure of server in election commission.

Define interpreter pattern.


Write the intentions of mediator pattern.
Define mediator pattern.
Sketch the structure of mediator pattern.
Write about Chain of Responsibility
Define Memento pattern
Define Observer pattern
Define Iterator pattern
Sketch the structure and applicability of Observer pattern

PART B (LONG ANSWER QUESTIONS)


1. Explain the uses of command design pattern and its structure
with class diagram. Also explain the implementation issues.
2. Explain the implementation and consequences of command
pattern.
3. Explain the implementation issues of command pattern with
sample code.
4. Explain the collaborations and consequences of command
method.
5. Explain the interpreter design pattern and discuss the
consequences and implementation issues.
6. Discuss the implementation issues of Iterator.
7. Explain the structure of mediator design pattern with a class
diagram and discuss the collaboration with a sequence
diagram.
8. Discuss about intent, motivation, structure, applicability and
consequences of a mediator behavioral pattern.
9. Explain the participants, collaborations, implementation and
sample code of the mediator pattern.
10. Explain the known uses of memento method.
11. Explain the uses of Chain of Responsibility design pattern
and its structure with class diagram. Also explain the
implementation issues.
12. Explain the Observer design pattern and discuss the

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

consequences and implementation issues.


13. Discuss the consequences and implementation issues of
memento design pattern.
14. Explain the uses of Iterator design pattern and its structure
Understand
with class diagram
15. Explain the known uses of Observer method
Understand
PART C (PROBLEM SOLVING AND CRITICAL THINKING QUESTIONS)
1. List and explain the various constructors and functions
Understand
present in iterator and list-iterator
2. What are the issues to be considered when designing the
chain of responsibility
Knowledge
pattern?
3. List and explain the variants and alternatives of iterator
Understand
pattern.
4. What is the motivation for mediator pattern? Explain
Understand
5. What is an iterator? Explain the various operations that an
Knowledge
iterator supports. Explain them in detail.
6. List and explain the variants and alternatives of iterator
Knowledge
pattern.
7. Give brief description about the command history.
Knowledge
8.

List and explain the various participants involved

in design of the interpreter


9. Explain Double Dispatch and Single Dispatch for behavioral
design pattern
10. What are the two models used in behavioral pattern?

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

PART B (LONG ANSWER QUESTIONS)


1. Explain the implementation issues of Strategy design
pattern.
2. Explain the implementation issues of observer design
7|Page

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

Prepared by: Mrs. S.Laxmi, Assistant Professor, IT

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

You might also like