UNIVERSITY EXAMINATIONS: 2020/2021
EXAMINATION FOR THE DIPLOMA IN BUSINESS INFORMATION
TECHNOLOGY
DBIT 306 OBJECT ORIENTED ANALYSIS AND DESIGN
DATE: DECEMBER, 2021 TIME: 2 HOURS
INSTRUCTIONS: QUESTION ONE IS COMPULSORY, CHOOSE TWO OTHER
QUESTIONS.
QUESTION ONE (20 marks) Compulsory
a. Explain the different relationships used in UML class diagrams. [6 Marks]
b. Describe FOUR types of inheritance used in OOAD. [4 Marks]
c. Distinguish between the following: [4 Marks]
i. Class and Object
ii. Super class and sub-class
d. A University includes a number of Schools that may contain a number of Departments.
Each Department is comprised by a number of academic and other staff and is chaired by
a Head who must be an academic. All academics teach classes that are attended by a
maximum of 40 students. Students must register in order to attend a class. An academic
may also supervise a number of postgraduate students.
Draw the UML Class diagram for the above system [ 6 Marks]
QUESTION TW0 (15 marks)
a. Describe any THREE notations used in activity diagrams [3 Marks]
b. With the use of relevant symbols explain the THREE types of visibility specifiers used in
depicting object access in classes. [6 Marks]
c. Draw an activity diagram for processing an order for the system bellow.
Once the order is received it has to be filled and billed simultaneously. The fills process
also sends the order to the client. The method of delivery is decided conditionally.
Depending on the condition, either the overnight delivery activity or the regular delivery
activity is performed. Finally the parallel activities combine to close the order. [6 Marks]
QESTION THREE (15 marks)
a. What is multiplicity as used in UML? [1 Mark]
b. With aid of diagrams explain the THREE main types of multiplicities. [3 Marks]
c. ABC restaurant consists of one chef, a customer and one waiter. The chef is responsible
for order of all the food ingredients, preparation of the food and doing washing up. The
waiter is responsible for taking the customer order, preparing the bill and taking the
payment made by the customer. The customer browses the menu, orders the food,
consumes the food, orders the bill and pays the bill. Draw the use case diagram for the
restaurant showing the role of chef, waiter and customer. [6 Marks]
d. Using a suitable diagram explain the parts of a class diagram. [5 Marks]
QUESTION FOUR (15 marks)
a. Relationship is an important building block of UML. It shows how elements are associated
with each other and this association describes the functionality of an application. With the
aid of diagrams explain the following types of relationships.
[8 Marks]
i) Dependency
ii) Association
iii) Generalization
iv) Realization:
b. State TWO advantages of modeling [4 Marks]
c. Using examples, discuss the similarity and difference between sequence diagrams and
collaboration diagrams. [3 Marks]