MISM5104  MDA5104  OBJECT ORIENTED TECHNOLOGIES KCA Past Paper

UNIVERSITY EXAMINATIONS: 2018/2019
EXAMINATION FOR THE DEGREE OF MASTER OF SCIENCE IN
INFORMATION SYSTEMS MANAGEMENT/ MASTER OF SCIENCE IN
DATA ANALYTICS
MISM 5104/ MDA 5104: OBJECT ORIENTED TECHNOLOGIES
DATE: AUGUST 2019 TIME: 2 HOURS
INSTRUCTIONS: Answer Question One & ANY OTHER TWO questions.

QUESTION ONE
(a) Describe two advantages of using object technologies to develop information systems
(2 Marks)
(b) Briefly explain the following terms as used of object oriented technologies.
Write a sample java code to illustrate implementation of term (8 Marks)
(i) Constructor method
(ii) Object
(iii) Interface
(iv) Polymorphism
(c) Consider the following online shopping scenario
Customer confirms items in shopping cart. Customer provides payment and address to process
sale. System validates payment and responds by confirming order, and provides order number
that Customer can use to check on order number that customer can use to check on order status.
System will send customer a copy of order details by email.
Use the following techniques to specify the above shopping scenario
(i) Table format of Use case (5 Marks)
(ii) Draw a class diagram (5 Marks)
QUESTION TWO
(a) Discuss the relationship between object oriented analyses (OOA), object oriented design
(OOD) and object oriented programming (OOP). Use a practical example to illustrate each
process (3 Marks)
(b) Describe the elements of an object. Draw a well labelled UML diagram to illustrate each
element (3 Marks)
(c ) Explain the difference between composition and Aggregation Describe a practical example for
each concept and draw a well labelled UML diagram for illustration (3 Marks)
(d) Suppose you are designing a data entry system. The primary actor is the data entry worker,
who will enter information into a user interface to create and update records for the client. During
a Requirements Workshop, a typical data entry worker is interviewed and describes the following
process:
“The System displays a screen that allows the User to enter an invoice number. The System
accesses the sales record and displays the current information in the record to the User,
highlighting fields that are related to payment. The User types information into the fields and
submits the updated record. The System updates the sales record”.
(e) Draw a well labelled sequence diagram to specify the above process (6 Marks)
QUESTION THREE
(a) Write short notes on the following techniques in the context of object oriented technologies
Draw a diagram to illustrate technique
(i) User stories (3 Marks)
(ii) Interfaces (3 Marks)
(b) Consider the following scenario
Owners of a partments fill in information forms about the rental units they have available(e.g.
Location, number of bedrooms,monthly rent), which are entered into a database.
Students can search through this database via the web to find apartment s that meet their
needs(e.g. A two bedroom apartment for $800 or less per month within ½ mile of campus)
They then contact the apartment owners directly to see the apartment and possibly rent it.
Apartment owners call the service to delete their listing when they have rented their apartment(s)
(b) Create a use case diagram for the above system (5 Marks)
(c) Draw class-Responsibility- Collaboration Cards (CRC) for the above cards (4 Marks)
QUESTION FOUR
(a) State and explain five types of relationships between classes. Draw UML diagram to illustrate
each relationship (5 Marks)
(b) Consider the following ATM Scenario
A session is started when a customer inserts an ATM card into the card reader slot of the machine.
The ATM pulls the card into the machine and reads it. If the reader cannot read the card due to
improper insertion or a damaged stripe, the card is ejected, an error screen is displayed, and the
session is aborted. The customer is asked to enter his/her PIN, and is then allowed to perform one
or more transactions, choosing from a menu of possible types of transaction in each case.
After each transaction, the customer is asked whether he/she would like to perform another. When
the customer is through performing transactions, the card is ejected from the machine and the
session ends. If a transaction is aborted due to too many invalid PIN entries, the session is also
aborted, with the card being retained in the machine. The customer may abort the session by
pressing the Cancel key when entering a PIN or choosing a transaction type.
(i) Draw a class diagram to represent the above ATM withdraw scenario (5 Marks)
(ii) Write a java program that implements one of the classes in the class diagram in (i) using object
oriented programming methodology (5 Marks)

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

Written by