07-28-2012, 06:42 PM
Course: Design Patterns (3481) Semester: Spring, 2012
Level: BS (CS) Total Marks: 100
Pass Marks: 40
1. PLAGIARISM OR HIRING OF GHOST WRITER(S) FOR SOLVING THE ASSIGNMENT(S) WILL DEBAR THE STUDENT FROM AWARD OF DEGREE/CERTIFICATE, IF FOUND AT ANY STAGE.
2. SUBMITTING ASSIGNMENTS BORROWED OR STOLEN FROM OTHER(S) AS ONE’S OWN WILL BE PENALIZED AS DEFINED IN “AIOU PLAGIARISM POLICY”.
Note: All questions carry equal marks.
Q. 1 What is a pattern? Where does the term ‘pattern’ come from?
Q. 2 Explain the concept of catalogue of design pattern. How the catalogue is organized?
Q. 3 Why creational pattern is called “Abstract Factory”? What are the three key strategies in the Abstract Factory?
Q. 4 The Abstract Factory pattern is to “provide an interface for creating families of related or dependent objects without specifying their concrete classes.” What does this mean? Give an example.
Q. 5 Are the Singleton and the Flyweight pattern related? If yes, how? If not, why?
Total Marks: 100 Pass Marks: 40
Note: All questions carry equal marks.
Q. 1 How design patterns are different from programming idioms? Explain with examples.
Q. 2 What basic problem is solved by the Bridge pattern? Are there any consequences of the Bridge pattern?
Q. 3 What is the most common use for the Adapter pattern? How does it help to deal with the interfaces of existing classes?
Q. 4 What is meant by chain of responsibility? Discuss in the context of behavioural pattern.
Q. 5 Design patterns, architecture styles and frameworks are all very similar. How do each of these techniques compare in terms of the type of reuse they enable?
3481 Design Patterns Credit Hours: 3 (3, 0)
Recommended Book:
Design Patterns Elements of Reusable Object-Oriented Software by Erich Gamma, Richard Helm, Ralph Johnson and John Vissides
Course Outlines:
Unit–1: Introduction
Introduction, Describing Design Patterns, The Catalog of Design Patterns, Organizing the Catalog, How Design Patterns Solve Design Problems, Selecting a Design Pattern, Use of Design Pattern
Unit–2: Creational Patterns–I
Abstract Factory, Builder, Factory Method
Unit–3: Creational Patterns–II
Prototype, Singleton, Discussion of Creational Patterns
Unit–4: Structural Pattern–I
Adapter, Bridge, Composite, Decorator, Façade
Unit–5: Structural Pattern–II
Flyweight, Proxy, Discussion of Structural Patterns
Unit–6: Behavioral Patterns–I
Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Observer, State, Strategy
Unit–7: Behavioral Patterns–II
Template Method, Visitor, Discussion of Behavioral Patterns
What to Expect from Design Patterns, A Brief History, The Pattern Community,
An Invitation, A Parting Thought
Unit–8: A Case Study: Designing a Document Editor–I
Design Problems, Document Structure, Formatting, Embellishing the User
Interface, Supporting Multiple Look-and-Feel Standards
Unit–9: A Case Study: Designing a Document Editor–II
Supporting Multiple Window Systems, User Operations, Spelling Checking, Hyphenation, Summary
Level: BS (CS) Total Marks: 100
Pass Marks: 40
WARNING
2. SUBMITTING ASSIGNMENTS BORROWED OR STOLEN FROM OTHER(S) AS ONE’S OWN WILL BE PENALIZED AS DEFINED IN “AIOU PLAGIARISM POLICY”.
ASSIGNMENT No. 1
Q. 1 What is a pattern? Where does the term ‘pattern’ come from?
Q. 2 Explain the concept of catalogue of design pattern. How the catalogue is organized?
Q. 3 Why creational pattern is called “Abstract Factory”? What are the three key strategies in the Abstract Factory?
Q. 4 The Abstract Factory pattern is to “provide an interface for creating families of related or dependent objects without specifying their concrete classes.” What does this mean? Give an example.
Q. 5 Are the Singleton and the Flyweight pattern related? If yes, how? If not, why?
ASSIGNMENT No. 2
Note: All questions carry equal marks.
Q. 1 How design patterns are different from programming idioms? Explain with examples.
Q. 2 What basic problem is solved by the Bridge pattern? Are there any consequences of the Bridge pattern?
Q. 3 What is the most common use for the Adapter pattern? How does it help to deal with the interfaces of existing classes?
Q. 4 What is meant by chain of responsibility? Discuss in the context of behavioural pattern.
Q. 5 Design patterns, architecture styles and frameworks are all very similar. How do each of these techniques compare in terms of the type of reuse they enable?
3481 Design Patterns Credit Hours: 3 (3, 0)
Recommended Book:
Design Patterns Elements of Reusable Object-Oriented Software by Erich Gamma, Richard Helm, Ralph Johnson and John Vissides
Course Outlines:
Unit–1: Introduction
Introduction, Describing Design Patterns, The Catalog of Design Patterns, Organizing the Catalog, How Design Patterns Solve Design Problems, Selecting a Design Pattern, Use of Design Pattern
Unit–2: Creational Patterns–I
Abstract Factory, Builder, Factory Method
Unit–3: Creational Patterns–II
Prototype, Singleton, Discussion of Creational Patterns
Unit–4: Structural Pattern–I
Adapter, Bridge, Composite, Decorator, Façade
Unit–5: Structural Pattern–II
Flyweight, Proxy, Discussion of Structural Patterns
Unit–6: Behavioral Patterns–I
Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Observer, State, Strategy
Unit–7: Behavioral Patterns–II
Template Method, Visitor, Discussion of Behavioral Patterns
What to Expect from Design Patterns, A Brief History, The Pattern Community,
An Invitation, A Parting Thought
Unit–8: A Case Study: Designing a Document Editor–I
Design Problems, Document Structure, Formatting, Embellishing the User
Interface, Supporting Multiple Look-and-Feel Standards
Unit–9: A Case Study: Designing a Document Editor–II
Supporting Multiple Window Systems, User Operations, Spelling Checking, Hyphenation, Summary