You are on page 1of 1

K. K.

WAGH POLYTECHNIC, NASHIK – 3


Department of Information Technology & Computer Technology
MSBTE Class Test-I, August – 2008
Semester :- Third Master : ‘C’ Course :- IF / CM
Subject :- Object Oriented Programming (OOP) Subject Code :- 9036
Duration :- 1 Hour Max. Marks :- 20
= = = = = = = = = = = = =
Instructions to candidate:-
1) All questions are compulsory.
2) Illustrate your answers with neat sketches/flowcharts wherever necessary.
3) Use of Non-programmable Electronics Calculator is permissible.
4) Figures to the right indicate full marks of respective questions.
5) Assume suitable additional data, if necessary.
Q.1 Attempt any Two. (2 × 2) 04
a) List any four OOP languages and their main features.
b) Define a class with appropriate syntax.
c) What is destructor? How destructor is defined in the simple class?

Q.2 Attempt any Two. (2 × 4) 08


a) Explain any four features of Object Oriented Programming.
b) Compare between structure and class.
c) Write a program to declare a class ‘Rectangle’ having data members as length
and breadth. Accept this data for one object and display area and perimeter of
rectangle by defining the functions.

Q.3 Attempt any Two. (2 × 4) 08


a) Illustrate the use of parameterized constructor with suitable example.
b) Write a program for following hierarchy inheritance in the given figure-1 below.
Assume proper member functions to input and display the data.

Class:Staff
Code

Class: Teacher Class : Officer


Subject Grade

Figure-1
c) Explain concept of ‘virtual base class’ with appropriate example.

You might also like