Allama Iqbal Open University Islamabad: Assignment No. 1
Allama Iqbal Open University Islamabad: Assignment No. 1
WARNING
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”.
Q. 1. (a) What is meant by the term “Design Pattern”? How design Patterns
solve design Problems. Explain t he concept in detail with the help of
proper examples.
(b) How are design patterns different from Algorithms and Data
Structure? Explain it with the help of suitable example.
(20)
Q. 2. Answer the following Question properly: (20)
There are two methods for propagating data to observers with the observer
design pattern: the push model and the pull model. Why would one model
be preferable over the other? What are the trade-offs of each model?
1
Q.5. Write short notes on the following terms: (20)
Bridge
Façade
Builder
Prototype
Assignment No. 2
(Units: 1-4)
Marks: 100
Pass Marks: 50
Q. 1. What are the three fundamental principles proposed by the Gang of Four
that guides how to anticipate change? What are the basic elements of a
sequence diagram? (20)
3
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, Facade
Unit # 5 Structural Pattern-II
Flyweight, Proxy, Discussion of Structural Patterns
Unit # 6 Behavioral Patterns-I
Chain of Responsibility, Command, Interpreter, Integrator, Mediator,
Moment 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
Activities/ Practical
1. Explore Software Design patterns technique? How design of software can be
improved using various techniques?
2. Select a case study and apply techniques of Design Patterns.