7803159243

7803159243



Birla Institute of Technology & Science, Pilani Work-Integrated Learning Programmes Division First Scmester 2014-2015

Comprehensivc E\amination (EC-3 Regular)

Course No.

SSZG514

Course Title

OBJECT ORIENTED ANALYSIS & DESIGN

Naturę of Exam

Open Book

Weightage Duration Datę of Exam

50%

3 Hours

09/11/2014 (FN)

No. of Pagcs = 3 No. of Questions = 4

Notę:

1.    Please follow all the lnstructions to Condidates given on the cover page of the answer book.

2.    All parts of a question should be answered consccutively. Each answer should start from a fresh page.

3.    Assumptions madę if any, should be statcd clearly at the beginning of your answer. _

Consider the definition of class named PurchaseOrder given below: class PurchaseOrder{

List<Order> IstOrder = new ArrayList<Order>(); //list of orders //method to get the tolal cost of all orders double getTotalOrderCost(){ double total =0;

//loop over the list of orders to fetch orders and find total cost for(Order order: IstOrder) {total += order.getOrderCost();} return total;

}


}

Draw the seąuence diagram to capture the system response for the execution of the method getTotalOrderCost() in the PurchaseOrder class.    [5]

Q.l (b) Refer to the class diagram given in Fig. 1. Which GRASP design pattern does it violates. Suggest a better solution with proper reasoning.    [5]

LiftController


getFloorO

^ movellft0 setTripO

emergencyProceduret

raiseAlarml)

updateLEDO

^openDoorsO'

^ closeDoorsO _^reset()

^ startupO ^-shutdown() displaylogl)

Fig. 1: class diagram corrcsnonding to O.l(b)

Q.l (c) Identify the problem with the design of the class diagram given in Fig. 2. Identify classes which are badly designed. Givc to the point reasons to substantiate your answer.    [5]

SS ZG514 (EC-3 Regular)


First Semester 2014-2015


Page 1 of3


Scanned by CamScanner



Wyszukiwarka

Podobne podstrony:
Institute of Political Science LLP ERASMUS Lifelong Learning Programme ErasmusUniversitycooperation
BIRLA INSTITUTE OF TECHNOLOGY AND SCIENCE, PILANI Higher Degree Admlssion Test: I Semester 2012-13 -
ANIL NEERUKONDA INSTITUTE OF TECHNOLOGY & Sciences Autonomous (Affiliatedto Andhra
www.innovmat.eumowm Institute of Technology Slovak Academy of Sciencesplatform for^ftowledge transfe
417 ETNOGRAFIA I JEJ WYBRANE ZASTOSOWANIA TOMASZ KRUSZEWSKI Institute of Information Science and Bib
Slajd7 MITOPENCOURSEWARE MASSACHUSETTS INSTITUTE OF TECHNOLOGY >Espanol JSIB? >Portugu6s >V
Uniwersytet Wrocławski Faculty of Social Sciences Institute of Political Science
Institute of Political Science The Institute’s infrastructure allowsm academic conferences (in one o
Publications The Institute of Political Science at the University of Wrocław publishes
Faculty of Social SciencesOrganisational Chart of the Institute of Political Science Speciahst Mag
Faculty of Social Sciences The Institute of Political Science is a perfect place for study and devel
Institute of Political Science SEMESTERS SPECIALITIES Speciality courses I (in semesters IV, V and V
I Institute of Political ScienceMaster s Programme Institute of Political Science at UWr920 foreign
MINES PARISParisTech GRAN0E5 ECOLES O INGENIEURS DE PARIS PARIS INSTITUTE OF TECHNOLOGY L’Ecole des
DSC00081 Massachusetts Institute of Technology8. Powstają rów-, nież androidy służące wyłącznie rozr
Slajd7 MITOPENCOURSEWARE MASSACHUSETTS INSTITUTE OF TECHNOLOGY >Espanol JSIB? >Portugu6s >V
SPRAWOZDANIE z pracy nr N0-7800-01„Massachusetts Institute of Technology (MIT) produkuje żelazo meto
BOOK REVIEWSOPTtMIZED VIBRATION TESTING AND ANALYSIS E. Szymkowiak Institute of Environmental Scienc
University of Silesia Faculty of Philology Institute of Library Science and InformationAnna

więcej podobnych podstron