You are on page 1of 4

DEDAN KIMA THI UNIVERSITY OF TECHNOLOGY

University Examination 2014/2015

STAGE II EXAMINATION FOR THE DIPLOMA IN INFORMATION


TECHNOLOGY

DIT 0204 : INTRODUCTION TO OBJECT ORIENTATION

DATE: 20TH NOVEMBER 2014 TIME: 8.30AM -lO.OOAM

INSTRUCTIONS:

Attempt Question 1 (compulsory - 30 marks) and any other TWO Questions (15 marks each).

QUESTION ONE (30 Marks):

a) Define the following


1. Object
11. Class
Ill. Abstraction (3 marks)
b) i) Define the term inheritance (2 marks)
ii) By use of diagrams explain three types of inheritance (6 marks)
c) Discuss any 4 benefits of object oriented methodology (4 marks)
d) With an example Explain the 3 parts of an object (3 marks)
e) Describe your understanding of the unified modeling language
2 mark)
f) Define the following
1. Use case
11. Use case diagram (1 marks)
g) With examples explain the following as used in use cases
i. Extends
Page 1 of 3
Includes
II.
in. Generalization (6 marks)
h) Explain the follow access modifiers
1. Public

II. Private
111. Protected (3 marks)

QUESTION TWO (J 5 Marks)

a) Below is a description of an ordering process

First of all customer and order are identified as the two elements of the sysyem and
they have one to many relationship because a customer can have more than one
order.
We would keep the order class an an abstract class and it has two concrete classes
(inheritance )special order and normal order. The two inheriting classes have all
properties of order class. In addition they have functions like dispatch 0 and receive

o
Draw a class diagram from above narrative and show all the relationships
(6 marks)
b) Model the relationship between a car (that has an engine and a color) and its owners
(having a name) in a UML class diagram. A car can have several owners over time, but
only one or none owner at a time. (3marks)
c) What is the difference between an event and an action? (2marks)
d) Describe four types classifications as used in class diagram (4 marks)

QUESTION THREE (15 Marks):

a) With use of examples explain the following class relationships

i.Dependency

ii.Aggregation

iii.Composition (9 marks)
Page 2 of 3
b) Describe 3 advantages of object-orientation to systems development.

R 'E A,N liM, r;":;-; , r ., (6 marks)


QUESTION FOUR (15 Marks): "'-.)1 ,"A.: Hi Ul~l?"I~tfl}l ."".1 J, ¥"nIi
~.. :LI" I ~ ..
lr
D
a) consider a student management information system de~i~~ed ~n(hhlp e' . €\1Vedto roll out
student services. Based on your experience as a student
i) Identify any three actors in the system
(3 marks)
ii) Draw a use case diagram for the system
(5 marks)
b) A master student shall be modeled using a UML diagram. A student can be asleep or
awake. A woken student can be at the KUCT, at home, i.e. in his room, in the kitchen and
in the bathroom. Which diagram type would you use to describe this? Draw a diagram for
this (7 marks)

QUESTION FIVE (15 Marks):

a) Briefly describe the term encapsulation as used in OOP (lmark)

b) In a supermarket customers swipe their credit card at the point of sale system. The
validity of the card is verified by the financial system before purchases are made. If the
card is valid, customers make purchases as long as the value is within credit limit the
credit card account is then debited with the value of the purchases and the card is
returned Customers wishing to purchase beyond the credit limit are allowed to make
cash payment for the difference for which a receipt is issued.

Draw a use case diagram based on the above narration. (6marks)

c) Briefly discuss the UML development process clearly stating what happens at every stage

(8marks)

Page 3 of 3

You might also like