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

Object Oriented Programming(Bbit 223)( Cisy 210)(Dcis 210) 3Rd Trimester 2016 Question Paper

Object Oriented Programming(Bbit 223)( Cisy 210)(Dcis 210) 3Rd Trimester 2016 

Course:Bachelor Of Business Information Technology

Institution: Kenya Methodist University question papers

Exam Year:2016



OBJECT ORIENTED PROGRAMMING(BBIT 223)( CISY 210)(DCIS 210)3RD TRIMESTER 2016
KENYA METHODIST UNIVERSITY

END OF 3'RD 'TRIMESTER 2016 (FT) EXAMINATION

SCHOOL : SCIENCE AND TECHNOLOGY
DEPARTMENT : COMPUTING AND INFORMATION SCIENCE
UNIT CODE : BBIT 223/CISY 210/DCIS 210
UNIT TITLE : OBJECT ORIENTED PROGRAMMING
TIME : 2 HOURS


INSTRUCTIONS

Answer question ONE and any other TWO questions


QUESTION ONE (30mks)

a) What is an object oriented programming (2mks)
b) Explain the following java program types

Applets
(2mks)
Stand alone application programs
(2mks)
c) Give the general format of extending an interface with a sample program

(3mks)
d) Explain the following concepts in context to java programming (10mks)

Objects
Exception handling
Method overriding
Polymorphism
Inheritance
e) Outline five rules that govern the choice of variables in java programming

(5mks)

f) "Write once; run anywhere (WORA)" is a slogan used by java programmers. Explain what it slogan means (2mks)
g) Write a java program to determine whether the given number is odd or even

(4mks)



QUESTION TWO (15mks)

a ) Explain the function of the following clauses as used in exception handling

(5mks)
Try
Catch
Throw
Throws
Finally
b) Write a java a program to illustrate the concept of method overloading

(6mks)

c) List four items you need to declare a method in java (4mks)


QUESTION THREE (15mks)

a) Explain the following forms of inheritance with program examples

Multilevel inheritance
(4mks)
Hierarchical inheritance
(4mks)

b) Name any three access specifiers used in java (3mks)
c) Explain any four components of a java program (4mks)


QUESTION FOUR (15mks)

a) Using for loop, write a program that will display numbers from 1 to 10 in ascending order (4mks)
b) Write a brief note on the following

Classes
(2mks)
Methods
(2mks)
Data abstraction
(2mks)
c) What RunTimeException will the following program throw (1mk)
public class testr

{

public static void main(String arg[])

{

System.out.println(1/0);

}

}

d)Explain the importance of polymorphism in OOP (3mks)






More Question Papers


Popular Exams



Return to Question Papers