Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
24 views
11 pages
2019 - Marking - HNDIT2313 Object Oriented Analysis and Design
Uploaded by
dmaseni111
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save 2019 - Marking - HNDIT2313 Object Oriented Analysi... For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
24 views
11 pages
2019 - Marking - HNDIT2313 Object Oriented Analysis and Design
Uploaded by
dmaseni111
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save 2019 - Marking - HNDIT2313 Object Oriented Analysi... For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save 2019 - Marking - HNDIT2313 Object Oriented Analysi... For Later
You are on page 1
/ 11
Search
Fullscreen
SLIATE Higher National Diploma in Information Technology ‘Second Year, Fist Semester Examination ~2019 HNDIT23130T3103 - Object Oriented Analysis and Design Model Answers Question oF (@. —Ditferatate between objec oriented analysis and object oriemied design. (Objet orented analysis ean be defined as investigation of objects. Design means collaboration of identified objects. ‘The most important purpose of OO analysis isto identify ebjects ofa system {be desiged, Analysis is also done for an existing system, ‘An efficient analysis i only possible when we are able to start thinking in a way where objects can be identified. After identifying the objects their "relationships are identified and finally the design Is produced. {06 Masks) (i. Define the tems coupling ad cobesion in the context of object oriented programming. Explain how coupling nd cohesion can lead to lth god or had soar design, Cohesion isthe indication of the relationship wit ‘module. Couplings the Indication ofthe relationships between modtles, Cohesion isa degree (quality) o which w component / mode focuses om the single thing, Coupling degree to which a component /medule is connected to the ather modules. (04 marks) Good design should go for high cohesion and low coupling. (01 mark)Gi, Give the object oriented terminology for each of the following object oriented features and supply an example of code tht illustrates the feature: 4) A blueprint for an object which defines all the data items contained inthe objet andthe operations that are permite for the dats. ‘This is known asa class (Ol mark) Forany correct example (02 mks) 1) A represention of something within the domain tat the program models ‘hich contains values of data and which implements opeations on that data, ‘This san object (Ot mark) For any correct example (02 mals) ©) Amopertion which will manipulate the dat contained inan object. ‘This isknown asa method (01 mark) Forany correct example (02 marks) (0 marks) (Fotat 20 marks) Question 02 ©. Letine the terms encapsulation and dita hiding and deste the reationship between them, Encapsulation relates (0 the packaging (binding) together of dat ‘operations (eg, to form classes in the object oriented paraligm). A common ‘objective of eneapsuation Isto prevent data from being vibe outside the ‘encapsulated unit in which itis defined, except through methods that can ‘therefore control access and monitor the validity ofthat dats they arbitrate [In that sense it also accomplishes data hiding where class members that we ‘wish tobe inaccessible outside the elas are designated private. (02 marks) and Data hiding i a more general term that entals secreting certain details of an Implementation (data or fonctions) away from the user to prevent them being, aceldentall or ineationally damaged, and also to simplify the programmer's view ofthe system, This may be va through the nse of private members im a 2 nvorr23 217303 Object vent Andis amd Dein 2019 Semesirreused class (Le, encapsulation), but canals be implemented using Mbraris, ‘the invocation of pre-compiled program components, and other means. (Comarks) (How does method overloading differ from method overiing? ‘Method Overloading: Having several versions ofthe same method name, but ‘with different signatures. The appropriate verson is execute, depending upon ‘the arguments passed when the method is invoked. (2 maeks) Method Overriing: Creating of wo or more methods withthe same name and signature in diferent classes inthe class hierarchy (Le, super-class and sub- 1) such that for example) a sub-class version can overshadow an inherited (uper-
0) ‘avnr25 131103 Objet One Anais and Dein 209 emer{ protons = Ps return true; , return floes } boolean setNeutrons (nt N) { iten>o) { neutrons = Ns ) return false; } boolean setEletrons(int E) t eE>0) {electrons = Bs return true; ) return false; } gstProtons( {ret {nc getNeuteons0 {return neutrons | int getEleetrons) {return electrons; } ‘arabe declaration ———-(01 mark) Constructor {02 mark) ~ (03 mars) (03 marks) 1) Write «new method forthe atom class called getAtomieMassNumber that wil clcuat and return the atomic mass numberof the atom (din: Atom mass number ofan atom = number of protons + numberof neutrons) public int getAtomieMassNumber | return protons + neutrons; } (03 marks) (Total 20 marks) ‘Question 3 (. Whatis the main pupose of use case modeling? To.capture the software's funetonal requirement. (03 murs) Luvonr2312173108~ Oe vend dns and Design 209 SemesterGi, Describe the meaning of <
> and
> in a UML usecase Aiagrams -<
> implies generalistion relationship in which he extending usecase continues (Le. adds more unetonality fo) the Behaviour of dhe base use ease ‘extending we ease is optonal and may be invoked depending up a condition, Smarts) hip that ental the inelaion of « <
> implies » generaliation rea behaviour defined in another use-ase The inladed ws ease is mandatoriy invoked, and the se use ease is incomplete without it. 2.Smarks) (Gi), Drawn usecase diagram forthe following Hospital Management Sytem, “The hospital has several specialized departments ike Cardiology, Gynecologic, Orthopedics, Poditris, ENT ee. OPD is another independent department. A doctor is ony associated with one specialized department ata tine though he/she «cam be a member ofthe OPD (Outside Patients Department. Eich doctor has 8 sting time and day ina week _Atreception he ptint detail are entered andthe fees ar alo taken andthe patent is tracked onthe basis ofthe ID generated. In routine a patient can visi the doctors cither diretly selecting «doctor or by getting admitted to the hospital and then a doctor vss the pation ‘A doctor can prescribe tests for the patent to perform. The paint vst the lab to {get done the ests presribed by hisher doctor, The reports are given othe patent ‘The payments pertaining tthe ets are done atthe reception. Referring the reports, the doctor prescribes the patient medicines or further tests or is asked to get dived. [A patent is admited into a ward ofa specialized department (i available) as per ‘he doctors prescription. The numberof wards is limited andi there is mo vacant ‘ward the admission ofthe patient is rescheduled As per the presrition of the doctor the patient is operated on a speifed date and lime as decided by the doctor who is doing the operation ‘Aftor the completion ofthe weatment a patient may get discharged onan ave of| ‘doctor and upon the complete payment of all due charges atte reepton. On vo 2313 073103 Objet Oriente Anaad Desig 2018 Semester‘payment of fll dus the reception generates discharge ket fo the patient. (12 marks) (Coat 20 mars) Question 4 (0. Brioty describe the pupeseof drawing component gram. ‘Component diagrams represent ast of components and thir relationships, So Component diagrams represent the implementation view ofa system. Daring design phase software artifacts (lasses, interfaces el) ofa system are arranged indifferent groups depending upon their relatcaship. Now these groups are known as components. Finally, component diagrams are used to visualize the implementation. (03 marks) ANDI231¥13105—Oljet Ose ray and Bes 2019 Somer,i). Show bow composition and ageregation inler
You might also like
OOSE Chapter 1 & 2
PDF
No ratings yet
OOSE Chapter 1 & 2
79 pages
Object-Oriented Software Design: Dr. R. Mall
PDF
No ratings yet
Object-Oriented Software Design: Dr. R. Mall
116 pages
OOAD Question Papers
PDF
0% (1)
OOAD Question Papers
206 pages
Cst221 Intro UML
PDF
No ratings yet
Cst221 Intro UML
58 pages
Cs8592 - Ooad - Int 3 QP
PDF
No ratings yet
Cs8592 - Ooad - Int 3 QP
39 pages
Lecture 1
PDF
No ratings yet
Lecture 1
43 pages
Object-Oriented Modeling Using UML: CS 3331 Fall 2007
PDF
No ratings yet
Object-Oriented Modeling Using UML: CS 3331 Fall 2007
32 pages
OOAD Unit-IV PDF
PDF
No ratings yet
OOAD Unit-IV PDF
44 pages
Object Oriented Modeling and Design With UML
PDF
No ratings yet
Object Oriented Modeling and Design With UML
99 pages
Object-Oriented Modeling Using UML
PDF
No ratings yet
Object-Oriented Modeling Using UML
53 pages
SE Unit2
PDF
No ratings yet
SE Unit2
171 pages
How To Design Classes
PDF
No ratings yet
How To Design Classes
666 pages
Chapter6 OODesign
PDF
No ratings yet
Chapter6 OODesign
72 pages
Lovely Professional University: Object Oriented Analysis and Design
PDF
No ratings yet
Lovely Professional University: Object Oriented Analysis and Design
10 pages
What Is UML?: Essentials of IBM® Rational® Rhapsody® For Software Engineers
PDF
No ratings yet
What Is UML?: Essentials of IBM® Rational® Rhapsody® For Software Engineers
12 pages
Solved Problems
PDF
100% (2)
Solved Problems
74 pages
3 and 10 Score (Q 0A)
PDF
No ratings yet
3 and 10 Score (Q 0A)
20 pages
It1050 Ooc
PDF
No ratings yet
It1050 Ooc
6 pages
Lab Manual No 15 (Class Diagram)
PDF
No ratings yet
Lab Manual No 15 (Class Diagram)
32 pages
1649 - GCS200888 - Vo Nguyen Duy Nam - Assignment 2 Full
PDF
No ratings yet
1649 - GCS200888 - Vo Nguyen Duy Nam - Assignment 2 Full
40 pages
Rajib Mall Lecture Notes
PDF
100% (2)
Rajib Mall Lecture Notes
137 pages
Object Oriented Design
PDF
No ratings yet
Object Oriented Design
27 pages
Module5 - Object Oriented Analysis Static Model
PDF
No ratings yet
Module5 - Object Oriented Analysis Static Model
44 pages
OOAD Short Notes
PDF
No ratings yet
OOAD Short Notes
13 pages
Object Oriented Analysis & Design Lab # 7
PDF
No ratings yet
Object Oriented Analysis & Design Lab # 7
7 pages
Introduction To OOAD
PDF
No ratings yet
Introduction To OOAD
31 pages
New Microsoft Word Document
PDF
No ratings yet
New Microsoft Word Document
62 pages
ONTAP
PDF
No ratings yet
ONTAP
46 pages
It1050 Ooc
PDF
No ratings yet
It1050 Ooc
5 pages
OODP All QP Sem 2
PDF
No ratings yet
OODP All QP Sem 2
10 pages
Ooad 6-5-24 1
PDF
No ratings yet
Ooad 6-5-24 1
11 pages
Ooad 2&16 M
PDF
No ratings yet
Ooad 2&16 M
3 pages
B. Tech. (Computer SC & Engineering)
PDF
No ratings yet
B. Tech. (Computer SC & Engineering)
2 pages
UNIT I Question Bank
PDF
No ratings yet
UNIT I Question Bank
5 pages
Tutorial of OOS With Java
PDF
No ratings yet
Tutorial of OOS With Java
5 pages
Object Oriented
PDF
No ratings yet
Object Oriented
17 pages
Exam Example Sol
PDF
100% (2)
Exam Example Sol
11 pages
Uml Diagram Questions Combined
PDF
No ratings yet
Uml Diagram Questions Combined
3 pages
Object Oriented Analysis Design and Uml
PDF
No ratings yet
Object Oriented Analysis Design and Uml
2 pages
SE Unit 2
PDF
No ratings yet
SE Unit 2
170 pages
Ch5.Object Models 65updated
PDF
No ratings yet
Ch5.Object Models 65updated
72 pages
Chapter 5
PDF
No ratings yet
Chapter 5
36 pages
Unit 3
PDF
No ratings yet
Unit 3
21 pages
Questions - Tagged
PDF
No ratings yet
Questions - Tagged
3 pages
OOSD AKTU PAPER 20-21 Solutions
PDF
No ratings yet
OOSD AKTU PAPER 20-21 Solutions
12 pages
Ooad Cat Questions
PDF
No ratings yet
Ooad Cat Questions
6 pages
2018 - Final Solution - Fall - SDA
PDF
No ratings yet
2018 - Final Solution - Fall - SDA
8 pages
Uml Diagram Questions Combined
PDF
No ratings yet
Uml Diagram Questions Combined
3 pages
Object Oriented System Development 2016
PDF
No ratings yet
Object Oriented System Development 2016
3 pages
UT Solution KCS054 2020-21
PDF
No ratings yet
UT Solution KCS054 2020-21
24 pages
June 2017 Object Oriented Technology
PDF
No ratings yet
June 2017 Object Oriented Technology
37 pages
Object Oriented Design MS
PDF
No ratings yet
Object Oriented Design MS
8 pages
Into
PDF
No ratings yet
Into
12 pages
COM423 6-Class Diagrams
PDF
No ratings yet
COM423 6-Class Diagrams
34 pages
Diva
PDF
No ratings yet
Diva
52 pages
CT1 Solution OOPS 2024-25
PDF
No ratings yet
CT1 Solution OOPS 2024-25
10 pages
Ooad QB Answers
PDF
No ratings yet
Ooad QB Answers
46 pages
University of Colombo, Sri Lanka Faculty of Technology
PDF
No ratings yet
University of Colombo, Sri Lanka Faculty of Technology
10 pages