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

Object Oriented (Bbit 223) (Cisy 210) (Dcis 120) 3Rd Trimester 2015 Question Paper

Object Oriented (Bbit 223) (Cisy 210) (Dcis 120) 3Rd Trimester 2015 

Course:Bachelor Of Business Information Technology

Institution: Kenya Methodist University question papers

Exam Year:2014



OBJECT ORIENTED (BBIT 223) (CISY 210) (DCIS 120) 3RD TRIMESTER 2015
KENYA METHODIST UNIVERSITY

END OF 3'RD 'TRIMESTER 2015 (PT) EXAMINATION

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


INSTRUCTIONS

Answer question one(compulsory) and any other two questions
Question One (30 Marks)

What is object oriented paradigm?
(2 Marks)
Describe the basic structure of Java programming with an example.
(6 Marks)
Explain the following concepts in the context of object oriented programming
(5 marks)
Abstraction
Encapsulation
Exception handling
Applets
Stand alone applications
Write a Java program that allows input of four numbers and outputs the average.
(4 Marks)
Explain the two types of error in a java program and what causes them.
(4 Marks)
(i) Explain the difference between method overloading and method overriding.
(2 Marks)
(ii) Describe two access modifiers used in java. (4 Marks)
(iii) Differentiate between a superclass and a subclass. (2 marks)


Question Two (15 Marks)

Describe the three forms of inheritance with examples.
(6 Marks)
Describe the life cycle of a thread with a diagram.
(5 Marks)
Highlight four advantages of an object oriented paradigm.
(4 Marks)


Question Three (15 Marks)

Explain four types of literals used in Java.
(4 Marks)
Identifiers are commonly used in Java for making classes, methods, variables and interfaces;
Outline four rules that governs naming of variables.
(4 marks)
Give the syntax of declaring a variable.
(1 Mark)
Write the syntax of the following looping statements
While loop
(2 marks)
Do while loop
(2 Marks)
For loop
(2 Marks)


Question Four (15 Marks)

Explain three access specifiers used in Java.
(3 Marks)
Explain the function of the following API tools
(6 Marks)
Language support package
Utilities package
Networking packaging
Why is it necessary to use interfaces in Java programming? Explain
(2 Marks)
Write the syntax to demonstrate a method and a class.
(4 Marks)






More Question Papers


Popular Exams



Return to Question Papers