You are on page 1of 2

KIMATHI UNIVERSITY COLLEGE OF TECHNOLOGY

University Examination 2011/2012

STAGE II EXAMINATION FOR THE DIPLOMA IN INFORMATION


TECHNOLOGY

DIT 0204: INTRODUCTION TO OBJECT ORIENTATION

DATE: JULY 21ST 2011 TIME: 11.00AM – 12.30PM

INSTRUCTIONS:

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

QUESTION ONE (30 Marks):


a) Define the term object (2mks)
b)
i. Define the term multiplicity (1mk)
ii. State four UML notations to represent multiplicity (4mks)
c) Using examples, explain the difference between composite objects and component
objects (4mks)
d) Identify, explain and illustrate four types of classifications between objects (8mks)
e) What is a class diagram? (2mks)
f) Name, illustrate and explain four UML notations of state diagram (8mks)
g) Differentiate between extends and includes as used in usecase diagram (2mks)
h) List three types of objects in robustness analysis (3mks)

QUESTION TWO (15 Marks)

a) Explain the term polymorphism (1mk)


b) Identify and explain four risks considered during UML development process (4mks)

Page 1 of 2
c) Explain two ways to specify objects responsible for the activities in activity diagram
(2mks)
d) Draw a state diagram of an order processing system using the information below (8mks)
 Show all states: checking, waiting, dispatching and delivery
 Indicate start and end of the diagram
 Indicate actions and guard together with transitions

QUESTION THREE (15 Marks)

a)
i. Define Inheritance (1mk)
ii. Name and explain three types of inheritance (6mks)
b) Differentiate between Extends and Includes as used in use case diagram (2mks)
c) Explain the term encapsulation (2mks)
d) Identify any four UML notations of an activity diagram (4mks)

QUESTION FOUR (15 Marks):

a) Define the term Class (2mks)


b) Identify and explain three characteristics of an object (6mks)
c) Draw a use case diagram of a restaurant subsystem based on the following (7mks)
“In the restaurant, when a client arrives, he/she request for a menu from a restaurant
attendant. The client then checks on the menu and orders food. The food is then served
and delivered to the client by restaurant attendant. The client then takes the food.”

QUESTION FIVE (15 Marks):

a) Define package diagram (2mks)


b) Illustrate, name and explain four UML notations of deployment diagram (8mks)
c) The object oriented development process stages include: Inception, Elaboration,
Construction and Transition. Explain five activities carried out during Transition phase
(5mks)
Page 2 of 2

You might also like