Anda di halaman 1dari 2


Level: Bachelor
Programme: BE

Semester Spring

Course: Object Oriented Programming in C ++

: 2009
Full Marks: 100
Pass Marks: 45
: 3hrs.

Candidates are required to give their answers in their own words as far
as practicable.
The figures in the margin indicate full marks.
Attempt all the questions.




a) What are the critical issues that are to be considered while

designing the large programming? Why.
b) What are the advantages of adopting RDD? Explain with a help of
a suitable example.
a) What are constructors and destructors? Explain their types and
uses, with good illustrative example? What difference would be
experienced if the features of constructors and destructors were
not available in C++.
b) Create a class called Volume that uses three Variables(length,
width, height) of type distance(feet and inches) to model the
volume of a room. Read the three dimensions of the room and
calculate the volume it represent, and print out the result. The
volume should be in (feet3) form i.e. you will have to convert each
dimension in to feet and fraction of foot. For instance, the length
12 feet 6 inches will be 12.5 ft.
a) What is a function? Discuss the use of friend function taking in to
consideration the concept of data hiding in object oriented
b) Write a program overloading the unary '++' operator to increment
the object of a class calendar. The overloaded increment operator
should increment days, weeks, months, and years with a step size
of a single day. Define the suitable class as per the necessity of the
program. Make size of month equal to 30 days.
a) What does Inheritance mean in C++? Explain the disadvantages
of inheritance.
b) How does inheritance in programming aid reusability? What are
the cost/demerits of inheritance.
c) Explain hybrid inheritance and virtual classes/members with
example program.






a) What do you mean by Stack Versus heap? Explain about memory

recovery. Explain the use of new and delete operator.
b) What will be the order of constructor invocation for the following
code snippet:
Class Date {
Class Time {

Class Bus }
int bus () ;
Date dep- date ;
Time dep-time;

int main ( )
Date D1 ;
Time T1 ;
Bus bs 1
a) Write a program to convert polar coordinate system to rectangular
coordinate system. Write the conversion function in source class.

b) Create an abstract base class shape with two members base and
height, a member function for initialization and a pure virtual
function to compute area ( ). Derive two specific classes Triangle
and Rectangle which override the function area ( ). Use these
classes in a main function and display the area of a triangle and a
Write short notes on (Any Two):
a) Non linear Behaviour of Complexity
b) Exeption Handling
c) Cohesion and coupling