OOAD Exams
OOAD Exams
OOAD Exams
Question 1
a) i) What do you understand by the term process? (2 marks)
ii) What role does the UML play in an OO development process? Is the UML
the process itself? (7 marks)
b) Objects are said to have both state and behaviour. Explain what is meant by these
terms? (5 marks)
c) Name and describe the UML modeling elements in class diagrams (6 marks)
d) What is a use case? (2 marks)
e) Identify the primary modelling elements appearing in a use-case diagram and
provide a short explanation for each. Does the actor always represent a human user?
If not, then give examples of what the actor might represent. (8 marks)
Question 2
a) i) Why are UML Interaction diagrams important? Explain. (5 marks)
ii) Clearly distinguish collaboration and a sequence diagram. (7 marks)
b) Examine the following sequence diagram and answer the questions that follow:
: Register : Sale
doSale()
b = updateSale(k)
rt = computeTotals()
printReceipt()
Question 3
a) Briefly distinguish between the terms Object Oriented Analysis and Object Oriented
Design. As you distinguish clearly bring out the emphasis of each activity. (8 marks)
b) How is the meaning of a class different in different perspectives? Discuss (6 marks)
c) What are the major elements that make up a sequence diagram? Outline. (6 marks)
Question 4
a) Describe the steps you would take to build a collaboration diagram. (8mks)
b) Describe the following relationships
(i) Composition
(ii) Inheritance
(iii) Generalization
(iv) Dependency (8mks)
c) Give a suitable example of each of the relationships you have described above.
(4mks)