RGPV Question Papers Object Oriented Programming Methodology 3rd Sem Dec 2005

RGPV Question Papers

Object Oriented Programming Methodology 3rd Sem Dec 2005

Note:      Attempt any five question. All question carry equal marks.

1   (a)    What is an object? How can do we use objects in program? Explain about different types of

objects.

(b)   What are the problems associated with object orientation?

©     Discuss about the following:

(i)  Method lookup    (ii) polymorphism

2. (a)    Explain about association between objects by giving proper examples .

(b)    Compare object oriented and procedure oriented programming languages .

©      We have a function with n arguments . Suggest a way to call this function using less than n

arguments. Give an example.

3.    (a)  What is this pointer ? Give the most practical use it. Is there any difference between  object

points and this pointer ?

(b)      Write a program using class pointer to read 20 strings each containing maximum 20 characters .

Write a member function that arranges these in alphabetical order and print the alphabetically

arranged list.

4.  (a)    Distinguish  between  the following two statement :

Time  T2 (T1);

Time T2=T1;

T1 and T2 are the object of class time.

(b)   What is meant by nesting of member functions ? Explain by giving an example.

©    What are operator functions ? Define an equal to relational operator function  named  operator =

= () that can be used  to compare  two date class having data members day,  months and year.

5.   (a)     What is friend function ? When is it compulsory ? = operator cannot be overloaded by using

friend function . Explain why ?

(b)       Why do we need  e virtual  function ?When to  we make a virtual function “Poured “ ?

©         Create a class called dimension containing three float data and  a constructor to accept values .

Also declare a pure virtual function area () in it create three derived classes rectangle , square

and triangle each inheriting dimension as public . Define corresponding constructors and

redefine virtual function area  in each . Write a complete program and also print the version of

virtual function used each time area is printed.

6. (a)       How  can we achieved  run time polymorphism in C++?

(b)     Explain about  copy constructor.

©         Distinguish between the following :

(i) Dynamic binding and Massage passing

(ii) Containership and inheritance

7.  (a)      Describe the role of access specified in inheritance .

(b)      What is multiple inheritance ? When do we use such an inheritance ? Use an examples to given

the syntax of it .

©         Discuss about virtual base class and abstract class.

8.           Write short notes on the following :

(a)  Disinheritance

(b)   Redefined

©   Aggregate components of object

(d)  Mandatory profiles

Leave a Comment