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

Object Oriented Programming Question Paper

Object Oriented Programming 

Course:Diploma In Information Communication Technology

Institution: Masai Technical Training Institute question papers

Exam Year:2017



1.Define the following terms as used in object oriented programming using c++
(i) class
(ii) operators
(iii) message passing
(iv) dynamic binding 8marks

2.(i)State four benefits of object oriented programming 4marks
(ii)Define a constructor and state 3 properties of a constructor 4marks
3.(i)Explain the syntax of a class 3marks
(ii)write a program that with calculate using classes
i.the area of a circle
ii.area of a triangle
iii.volume of a sphere 5marks
4.State and explain four types of member functions 8marks
5.(i)write a program that will output numbers between 20 & 30 using a while loop. 5marks
(ii)Explain the difference between overloading and overriding 3marks
6.Identify error in the following program.
#include
class Room
{
int width,int height;
void setValue(12,1,4)
{
width = w;
height = h;
}
};
void main()
{
Room ObjRoom;
objRoom.width = 12;
} 7marks

7.how do structures in c and c++ differ 3marks






More Question Papers


Popular Exams



Return to Question Papers