DBIT306  OBJECT ORIENTED ANALYSIS AND DESIGN.

UNIVERSITY EXAMINATIONS: 207/2018
EXAMINATION FOR THE DIPLOMA IN BUSINESS INFORMATION
TECHNOLOGY
DBIT306 OBJECT ORIENTED ANALYSIS AND DESIGN
DATE: MARCH/APRIL 2018 TIME: 1½HOURS
INSTRUCTIONS: Answer any THREE Questions.

QUESTION ONE
(a) Using an example, define an object and discuss its components (6 Marks)
(b) Explain the meaning of encapsulation (2 Marks)
(c) Discuss any four inheritance types (8 Marks)
(d) What is the importance of using use case diagrams UML? (4Marks)
QUESTION TWO
(a) An employee is a person who works for an organization; an employee is supposed to
report to work at 8AM and leave at 5PM. An employee can be a research assistant or a
teaching assistant; an employee can also be a finance officer in finance office. To
become an employee, you need to apply and be invited for an interview after which if
you qualify you receive an appointment letter.
i. Draw use case diagram from the scenario above. (3Marks)
ii. Draw a class diagram from the scenario and show inheritance where necessary.
(3Marks)
(b) Explain the following UML diagrams. (4 Marks)
i. Sequence diagrams
ii. State diagrams
(c) Compare and contrast structural programming and OOP. (8 Marks)
(d) Define a class. (2 Marks)
QUESTION THREE
(a) Why is documentation an important part of analysis? (4 Marks)
(b) Give the guidelines for naming a class. (4 Marks)
(c) Using an example, explain the meaning of association (4 Marks)
(d) Explain what a generalization hierarchy is, using an example. (4 Marks)
(e) Explain what aggregation is, using an example. (4 Marks)
QUESTION FOUR
(a) Explain the features targeted by the following implementation models. Use examples.
(8 Marks)
(i) Component diagram
(ii) Deployment diagram
(b) What is an attribute? Give example. (2 Marks)
(c) What is cardinality in an association? Use an example. (2 Marks)
(d) Draw a use case diagram for the scenario below: (8 Marks)
Inventory System:
In order to generate an invoice a clerk must log in. If a clerk is a first time user, one must
have themselves registered. There should be an option for a user to register oneself within the
login page. Any user can use the system to view products online. The option of login is also
provided when a user views products online.
QUESTION FIVE
(a) State four advantages of modeling (4 Marks)
(b) Describe the purpose of the following UML diagrams: (4 Marks)
(i) Class Diagram
(ii) Object Diagram
(c) Explain when the following associations are used: (4 Marks)
(i) ‘Extends’
(ii) ‘Includes’
(d) Discuss the similarity and difference between sequence diagrams and collaboration
diagrams. Use an example to explain your answer. (8 Marks)

(Visited 91 times, 1 visits today)
Share this:

Written by