Sszg514 Nov25 FN

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Birla Institute of Technology & Science, Pilani

Work-Integrated Learning Programmes Division


First Semester 2018-2019

Comprehensive Examination
(EC-3 Regular)

Course No. : SS ZG514


Course Title : OBJECT ORIENTED ANALYSIS AND DESIGN
Nature of Exam : Open Book
Weightage : 45% No. of Pages =2
Duration : 3 Hours No. of Questions = 7
Date of Exam : 25/11/2018 (FN)
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. Explain how Unified Process can be tailored and combined with Agile Software Process
in order to develop Agile Unified Process. What are the advantages of using the Agile
UP? [4]

Q.2. SOLID is an acronym of acronyms. Explain each principle (with the help of an example)
which together forms the SOLID principle. [5]

Study the description of the system given below and answer the questions that follow:
(Q.3. to Q.5. are based on this case study)

A website engaged in selling chocolates has a huge customer base. The customer can order
chocolates for immediate delivery (within 24 hours) or place post-dated orders (for even a
year in advance).
• In case of post-dated orders, the customer is contacted two days before order date about
the upcoming order delivery date and content. At this time, the customer can wish to add
or modify order contents (under the constraint that there should be no lowering of the bill
amount). However, deleting such order (post-dated) at any point of time is not allowed.
• Modifying contents of immediate orders is also subject to the constraint that the modified
order value should not be less than 80% of the original order.
• Deleting immediate orders is allowed only if more than 8 hours are remaining in the
delivery time.
• Changing the delivery address of any order (immediate or post-dated order) is considered
as deleting the order.
• Finally, the customer can make payment (for both immediate and post-dated orders)
either through credit card, wire transfer or cash on delivery.

Q.3. Draw the Use Case Diagram for the above system. Identify all the primary and secondary
actors. Identify all the main uses cases of the system and depict “includes”, “extends” and
“generalization/specialization” relationships, wherever applicable. [4]

Q.4. Draw the Class Diagram for the above system. Identify all classes, their attributes, and
methods. Represent relationship between classes using appropriate notations. [6]

SS ZG514 (EC-3 Regular) First Semester 2018-2019 Page 1 of 2


SS ZG514 (EC-3 Regular) First Semester 2018-2019 Page 2
Q.5. For each of the case below, identify the GOF design pattern that would be required in
order to provide a solution for the given case. Explain with the help of a diagram. Your
diagram must be according to the case and not the standard diagram for the concerned
pattern. No code is required. [4 x 3 = 12]
(a) The above website receives heavy traffic during festive season. Due to this its
response time becomes less and the site hangs. The development team found that
large numbers of database connections are created to access the data from the
database, which slows down the server. The team decided to implement a
‘DatabaseConnectionPool’ class which maintains 60 connections to the database.
Whenever a new connection is required, it is obtained from the pool and returned
back to it.
(b) In order to further enhance the response time of the website, the company decided
to have a dedicated server for its registered users. Using the same
‘DatabaseConnectionPool’ class, they want that different types of connection
objects are generated based on the type of the user.
(c) The Company acquired another website which deals in selling flowers. The
development team wants a quick solution to join these two websites into one
interface without hampering client interaction. The customer should have option to
either access the chocolate website or the flower website at one time and place
orders.

Q.6. Identify and explain the GRASP pattern applied in each of the following case scenarios:
(a) In a web-based library management system, all requests to issue/return/search
books based on author or book name are routed to the ‘LibraryManager’ class,
which forwards them to the respective domain classes.
(b) An online railway reservation system displays the required rail information by
reading data from the centralized server located at the head office. The class named
‘RetrieveRailInfo’, which is not a part of the domain model of the system, is
responsible for reading data from the database.
(c) In a game of cricket, the ‘CricketGame’ class stores information about the scores of
each player and that of the entire team. This class is further responsible for deciding
and declaring which team wins. [3 x 3 = 9]

Q.7. The Observer Pattern defines a one-to-many dependency between objects so that when
one object changes its state, all its dependents are notified and updated automatically. It
encapsulate the engine components in a Subject abstraction, and the variable (or optional
or user interface) components in an Observer hierarchy. There are four participants
involved in this pattern: Subject, ConcreteSubject, Observer and ConcreteObserver.

• All the ConcreteObservers attach themselves to the ConcreteSubject.


• Invocation of setState() method leads to a change in the state of the ConcreteSubject.
• Whenever the state of the ConcreteSubject changes, it invokes its notify() method, which
notifies all registered Observers that it’s state has changed, by invoking update() method
of the ConcreteObserver.
• On receiving this notification, the ConcreteObserver queries the ConcreteSubject for the
updated state information using the getState() method.
Draw the Communication Diagram illustrating the above collaboration between a
subject and two observer objects. [5]
**********

SS ZG514 (EC-3 Regular) First Semester 2018-2019 Page 2 of 2

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy