Birla Institute of
Technology & Science, Pilani
Work-Integrated
Learning Programmes Division
First Semester 2016-2017
Comprehensive
Examination (EC-3 Regular)
Course No. :
SSZG514
Course Title :
OBJECT
ORIENTED ANALYSIS & DESIGN
Nature of Exam :
Open Book
Weightage :
50%
Duration :
3 Hours
Date of Exam : 06/11/2016 (FN)
9 AM – 12 Noon
No
of pages: 2
No
of questions: 5
Note:
1. Please follow all the Instructions
to Candidates given on the cover page of the answer book.
2. All parts of a question
should be answered consecutively. Each answer should start from a fresh
page.
3. Assumptions made if any,
should be stated clearly at the beginning of your answer.
Q.1.
A university is designing an Application that
will keep a record of students. The students will be permitted to register for
various courses and marks will be recorded for each course that each student is
registered for. A record needs to be
maintained of the prescribed text books for each course. A student has his own
notes for the study done by him/her (called to-do list) which are not linked to
the courses. It has also been noted that each course has certain assignments
which are to be recorded for each course separately. A student is permitted to
register for a given course only once and will not be allowed to register
again.
[10]
Draw a domain
model for the above observation. Clearly
list the domain objects and their relationships. The multiplicity of the relationships must be
shown as per prescribed standard.
Q.2.
You
are to prepare an application which has UI screens with the following 7
buttons: ADD, EDIT, DELETE, SEARCH, PRINT, SAVE, CANCEL, EXIT. The state of the entry ENTRY, EDITING,
DELETING, VIEWING, PRINTING, SEARCHING (LIST_VIEW), WAITING.
The initial
state is WAITING and only the ADD, SEARCH and EXIT buttons are enabled.
(a)
Draw
a state transition diagram to record the following events. [3]
If the SEARCH
Button is clicked a list appears and the state becomes SEARCHING (LIST_VIEW)
wherein an existing entry may be selected/clicked and the state transitions to
VIEWING.
(b)
Describe
the remaining options in a separate
sentence for each transition for a
typical User Interface as described above. [3]
(c)
Draw
a state transition diagram to indicate all the options you feel need to exist
for a user IO screen. [5]
(d)
Draw
a table indicating which buttons would be enabled and which disabled in each
button-state: ENTRY, EDITING, DELETING, VIEWING, PRINTING, SEARCHING
(LIST_VIEW), WAITING. The buttons
dynamically switch on and off based on context. [5]
Q.3.
Reuse
covers any situation in which work done for one project is used to help another
a) What can be reused and how? [2]
b) What are the benefits of reuse? [2]
c) What are the difficulties involved and
problems associated with reuse? [2]
d) What features would help a components to be
reusable? How does Object Orientation support reuse? [2]
e) An organisation has provides additional
budget to all projects so that components are well documented and tested and
designed for reuse so as to benefit the organisation in the long run. Explain
why this may not help? [2]
SS ZG514 (EC-3
Regular) First
Semester 2016-2017 Page 2
Q.4.
Please
provide a suitable solution for each of the following situations. Express your
solution with a diagram. Only a clear explanation will fetch marks.
(a)
A number of domain objects which are totally
different may have a common set of responsibilities for organizing data which
is used by all of them. This data may
be kept in one object and any update intimated to individual objects so that
they may update their state and execute consequential activity. [3]
(b)
You are working on a project which was
designed for use of a third party service.
On completion of the project it was decided that a different third party
service would be used but the interface is different. [3]
Q.5.
The
key to reuse lies in anticipating change and designing systems so that they can
evolve accordingly. Sometime sub-classing may be required but is best avoided
as it gives rise to further extensions and an introduction of many new
sub-classes. This can be avoided by
composition and delegation with existing classes objects or new objects rather
than new sub-classes. Sometimes you may
create one sub-class and compose its instances with existing ones. Give examples of two design patterns that
achieve this and explain your answer in the context of what is written above in
this question. ONLY EXPLAINING IN CONTEXT WILL BE EVALUATED. (No marks for a copy
paste solution) [4 x 2 = 8]
***********
No comments:
Post a Comment