Get premium membership and access revision papers, questions with answers as well as video lessons.

Object Oriented Programming (Bbit 223) (Cisy 210) (Dcis 120) 2Nd Trimester 2014 Question Paper

Object Oriented Programming (Bbit 223) (Cisy 210) (Dcis 120) 2Nd Trimester 2014 

Course:Bachelor Of Business Information Technology

Institution: Kenya Methodist University question papers

Exam Year:2014



OBJECT ORIENTED PROGRAMMING (BBIT 223) (CISY 210) (DCIS 120) 2ND TRIMESTER 2014
KENYA METHODIST UNIVERSITY

END OF 2'ND 'TRIMESTER 2014 (DAY) EXAMINATION

FACULTY : COMPUTING & INFORMATICS
DEPARTMENT : COMPUTER SCIENCE AND BUSINESS
INFORMATION
UNIT CODE : BBIT 223/CISY 210/DCIS 120
UNIT TITLE : OBJECT ORIENTED PROGRAMMING
TIME : 2 HOURS


Instructions: Answer question one and any other two questions.

Question One

What is object oriented paradigm.
(2mks)
Describe the basic structure of java language with a program examples.
(5mks)
Explain the following java program types.
(2mks)
Applets
Applications
Give the general format of extending an interface with a sample program.
(3mks)
Outline the steps to be followed when creating a package.
(5mks)
Explain the following concepts in context to java programming. (10mks)
Objects
Abstraction
Encapsulation
Polymorphism
Inheritance
Write a java program to display the following 0/p in three lines.
(3mks)
"welcome to java"

"Let us learn java"

"Java is object oriented programming"



Question Two

Describe the different forms of inheritance with examples.
(6mks)
What are the unique advantages of an object oriented programming paradigm
(5mks)
Define the term class and illustrate the same using its syntax. (4mks)



Question Three

Explain the concept of data abstraction as used in OOP.
(5mks)
Study the following program and answer the questions that follow.
Class error

{

Public static void main (string orgns []

{

Int a[ ] = {5,log;

Int b=5;

Try

{

Omt X= a{2}/b-a{1};

}

Catch (arithmeticexception e)

{

Catch (arraystareexception e)

{

System out println ("wrong data type")

}

}

Identify the error in the program.
(1mk)
Name the catch block that will receive the error.
(1mk)
What will be the output of the above program.
(2mk)
Explain the program concept.
(2mks)

What is a finally block? When and how it is used? Give a suitable program example.
(5mks)


Question Four

Write a program that executes the three threads. First threads display "good morning" every one second; the second thread displays "Hello" every two seconds and the third thread displays "welcome" every three seconds create the three threads by extending the thread class.
(8mks)
How are objects created from a class? Explain
(2mks)
(i) Differentiate between overbidding and overloading methods.
(2mks)
ii) Name any three access specifies. (3mks






More Question Papers


Popular Exams


Mid Term Exams

End Term 1 Exams

End Term 3 Exams

Opener Exams

Full Set Exams



Return to Question Papers