UNIVERSITY EXAMINATIONS: 2018/2019
EXAMINATION FOR THE DEGREE OF BACHELOR OF SCIENCE IN
BIT2107 OBJECT ORIENTED ANALYSIS & DESIGN
APRIL 2019 TIME: 2 HOURS
o Answer question ONE and any other TWO.
o Question One carry 30 marks, others 20 marks each.
QUESTION ONE. (COMPULSORY)
(a) Give the meaning of the following terms in relations to Object Oriented field:
(b) Highlight any three limitations of the structured approach to software development.
(c) Define Unified Modeling Language (UML) in object orientation and describe
its main building blocks. (4 Marks)
(d) Define sequence diagram and show symbols used to draw them. (4 Marks)
(e) Describe the three views used in UML and show all 7 diagrams (7 Marks)
(a) Consider the following scenario.
“Nurses work on a particular ward. Doctors are assigned a number of patients and
during their rounds visit a number of different wards. If a doctor needs advice he/she
may consult with a specialist consultant regarding a particular patient. The specialist
may see the patient. Specialists are basically senior doctors.”
Draw the class diagram to include any inheritance, aggregation or composition and
multiplicities where possible. (12 Marks)
(b) A student in KCA University intends to go for a class. Draw his possible activity diagram.
Remember to include swim lanes, forks, and joins among others. (8 Marks)
(a) In my local food kiosk, you find the following items: Maize, bananas, beans and Oranges.
Draw a hierarchical class diagram to illustrate the kiosk. (4 Marks)
(b) Study the scenario below and answer the questions that follow:
When a student arrives at KCA University, Admission clerk register them at their desk. The
registration is done by a way of entering the student details in the registry. Since admission
clerk is interested in the student, academic level in the university among other details they
records includes names, academic level, town, age and contacts. After registration, the student
is handed over to the faculty. The faculty staff then helps the student to become a faculty
member where they learn until the graduate.
(i) Identify possible actors (3 Marks)
(ii) Identify the possible use cases (3 Marks)
(iii) Draw a use case diagram showing clearly how actors interact with the use cases as
you have stated in (i) and (ii) above. (7m Marks)
(iv) What is the significant of use cases in the Object oriented analysis and design
(a) (i) What is a state diagram? (2 Marks)
(ii) Create a state diagram for this scenario. (10 Marks)
The washing machine has 2 major states : pause and runnable. A washing machine in the
runnable state cycles around the following substates – stopped, filling, washing and spinning.
The machine can only start running if the door is closed and the machine will pause
immediately the door is opened. The washing machine runs to a program. The machine
will restart the program each time it re-enters the runnable state
(b) What do you understand by the following terms as used in Object oriented concepts?
(i) Prototyping (2 Marks)
(ii) Spiral Model (2 Marks)
(iii) Inception (2 Marks)
(iv) Transition (2 Marks)
(a) Discuss the following visibility types with the use of an appropriate symbol: (6 Marks)
(b) (i) What do you understand with the term multiplicity? (2 Marks)
(ii) Outline any four types of multiplicities (4 Marks)
(c) Explain any two common uses of interaction diagrams (4 Marks)
(d) Discuss any two situations where activity diagrams are suitable. (4 Marks)