BBIT 203 OBJECT ORIENTED PROGRAMMING I DISTANCE LEARNING KCA Past Paper

UNIVERSITY EXAMINATIONS: 2014/2015
ORDINARY EXAMINATION FOR THE BACHELOR OF SCIENCE
IN INFORMATION TECHNOLOGY
BBIT 203 OBJECT ORIENTED PROGRAMMING I DISTANCE
LEARNING
DATE: APRIL, 2015 TIME: 2 HOURS
INSTRUCTIONS: Answer Question ONE and any other TWO

QUESTION ONE [30 MARKS]
a). Describe the following phases of object oriented system development
i). Object Oriented Analysis [3 Marks]
ii). Object Oriented Design. [3 Marks]
b). Differentiate between function overloading and function overriding as used in C++.
[4 Marks]
c). Distinguish between the following types of inheritance:
i). Single inheritance
ii). Multilevel inheritance
iii). Hierarchical inheritance
iv). Multiple inheritance [8 Marks]
d). Explain the following terms as used in object technology
i). Message passing. [1 Mark]
ii). Methods. [1 Mark]
iii). Object. [1 Mark]
iv). Polymorphism [ 1 Mark]
e). Briefly outline four advantages of object orientation.
[8 Marks)
QUESTION TWO [20 MARKS]
a) Differentiate between encapsulation and abstraction. [2 Marks]
b) Describe inheritance as used in application development. [2 Marks]
c) How is program modularization achieved in C++. [2 Marks]
d) Explain how classes achieve code hiding and code reuse in a program. Write a program to help explain your answer. [10 Marks]
e) What is operator overloading and why do we use this concept. Give the general syntax that is used to implement operator overloading. [4 Marks]
QUESTION THREE [20 MARKS]
a) With help of a sample program describe the structure of C++ program. [8 Marks]
b) Explain how the concept of client-server is used in C++ program. [4 marks]
c) Differentiate between structure and class as used in C++. Give examples to support
your argument. [4 Marks]
d) Briefly discuss how each of the following visibility modifiers affects inheritance of
member elements in derived classes.
i). Private [1 Mark]
ii). Public [1 Mark]
iii). Protected [1 Mark]
QUESTION FOUR [20 MARKS]
a) Write a program with base class animal with features, which can be inherited by
class.
Human being and class domesticated animal. Create instances from all classes to
demonstrate aspect of inheritance. [8 Marks]
b) Explain how classes help to achieve program modularization function. [2 Marks]
c) Differentiate between intrinsic and user defined data type as used in C++. Give one
example in each case. [4 Marks]
d) What is an inline function? How can a programmer make a class method inline?
[6 Marks]
QUESTION FIVE
a) Discuss any FOUR advantages of encapsulation in OOP. [8 Marks]
b) Using and example describe how encapsulation can be implemented in C++.
[7 Marks]
c) Describe the importance of abstraction in OOP hence distinguish between functional
and data abstraction. [5 Marks]

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

Written by