Object Oriented Programming (Cisy 210) (Bbit 223) 1St Trimester 2014 Question Paper
Object Oriented Programming (Cisy 210) (Bbit 223) 1St Trimester 2014
Course:Bachelor Of Business Information Technology
Institution: Kenya Methodist University question papers
Exam Year:2014
Object oriented programming (cisy 210) (bbit 223) 1ST TRIMESTER 2014
KENYA METHODIST UNIVERSITY
END OF 1'ST 'TRIMESTER 2014 (EVENING) EXAMINATION
FACULTY : COMPUTING & INFORMATICS
DEPARTMENT : COMPUTER SCIENCE AND BUSINESS
INFORMATION
UNIT CODE : CISY 210/BBIT 223
UNIT TITLE : OBJECT ORIENTED PROGRAMMING
TIME : 2 HOURS
Instructions: Answer question one and any other two questions
Question One
Give two differences between functional programming paradigm and object oriented programming paradigm.
(2mks)
Using a java program illustrate the various parts of a java program. (4mks)
Write a java programs that allows input of four numbers and outputs the average.
(5mks)
Explain the importance of data abstraction in object oriented programming.
(2mks)
Write a java program that outputs all prime numbers between 1 and 100.
(5mks)
By use of a java program differentiate between a java method and a construction.
(6mks)
Using examples explain the various control structures in java.
(6mks)
Question Two
Write a java program that allows a business lady to enter various products and sales of the day and outputs the following.
(11mks)
Summary of sales for the day
The highest selling product
The lowest selling product
The total revenue from the sales.
Differentiate between pass by value and pass by reference.
(4mks)
Question Three
Write a java program that demonstrates data abstraction.
(12mks)
Using a java program explain the various part of exception handling in java.
(3mks)
Question Four
Explain the various types of errors in a java program and what causes them.
(6mks)
Write a java program that demonstrates the use of an abstract class. (9mks)
More Question Papers
Exams With Marking Schemes
Popular Exams
Mid Term Exams
End Term 1 Exams
End Term 3 Exams
Opener Exams
Full Set Exams
Return to Question Papers