BIT 2108 OBJECT ORIENTED PROGRAMMING I KCA Past Paper

UNIVERSITY EXAMINATIONS: 2012/2013
SECOND YEAR EXAMINATION FOR THE BACHELOR OF
SCIENCE IN INFORMATION TECHNOLOGY
BIT 2108 OBJECT ORIENTED PROGRAMMING I
DATE: DECEMBER, 2012 TIME: 2 HOURS
INSTRUCTIONS: Answer Question ONE and any other TWO

QUESTION ONE
a) Explain the following terms as used in object technology (4 Marks)
i. Message passing
ii. Methods
iii. Object
iv. Polymorphism
b) Differentiate between class and structure as used in C++. (4 Marks)
c) With appropriate example describe what is function overloading (4 Marks)
d) Briefly explain the following terms as used in inheritance: (5 Marks)
i. Derived class
ii. Single inheritance
iii. Multiple inheritance
iv. Hierarchical inheritance
v. Abstract class
e) Explain what exception handling is and, how it is implemented in C++.
(3 Marks)
f) Describe the following
i. Object Oriented Analysis (3 Marks)
ii. Object Oriented Design (3 Marks)
g) Outline application area of the following (4 Marks)
i. Namespace
ii. Function Overriding
QUESTION TWO
a) Explain the role-played by pointer in memory management, how is this
achieved? (5 Marks)
b) Write a program using reference variables as arguments to swap the values of a
pair of integers. (7 Marks)
c) With an example explain how virtual function achieves run time polymorphism.
(8 Marks)
QUESTION THREE
a) With a valid example, explain how ADT are created. (3 Marks)
b) Describe how abstraction is achieved when using class object to implement
systems. (3 Marks)
c) Describe code reuse as used in application development. (2 Marks)
d) Differentiate between multiple and hierarchical inheritance. (2 Marks)
e) Explain how classes achieve code hiding and code reuse in a program. Write a
program to help explain your answer. (10 Marks)
QUESTION FOUR
a) Explain your understanding of object orientation. (3 Marks)
b) What is object technology? (2 Marks)
c) Briefly outline Four major advantages of object orientation. (8 Marks)
d) Outline four main feature of object oriented programming language (OOP) give
three examples of OOPL (7 Marks)
QUESTION FIVE
KCA University is pleased with your outstanding performance in information technology
courses especially in programming. As such they would like to hire your services and
attach you to library.
a) Write a program to capture details of available and new books. (10 Marks)
b) Rewrite the program in 5(a) and include the following
i. Book borrowing
ii. Book return
iii. Display a list of available books
(10 Marks)
NOTE Marks will be awarded for use of class(es) and object in part 5(b)

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

Written by