RGPV Previous Exam Papers CS 3rd Semester Object Oriented Programming Methodology Dec 2007

RGPV Previous Exam Papers CS 3rd Semester

Object Oriented Programming Methodology Dec 2007

(Common for CS,EC/IC IT Engg.)



Note.    (i)  Answer this entire question.

(ii)  Total six Question are to be attempted

(iii)  There is in internal choice in every question

(iv) Answer of all objective questions should be at one place only.

(v)   Answer should be precise and to the point only.

(vi)  Assume suitable missing /misprint data is necessary.

1.          Attempt any two objective type question from each unit (a to e) .(Total 10. Nos.of question are

to be attempted.)

State whether the following statements are true or false:

(a)   (i)  Data members can be initliazation inside class specified

(ii)  Friends functions have access to only public members of a class

(iii) Data items in a class can be public.

(b)   (i)  constructors like other member function can be declared anywhere in the class.

(ii)  Destructors never take any argument.

(iii)  The overloaded operator must have at least one operand that is user defined type.

(c)  (i)     Operator overloading works when applied to class object only .

(ii)    It is legal to have an object of one class as member of another class.

(iii)   This pointer points to the object that is currently used to invoke a function

(d)  (i)   Virtual functions are used to create pointers to base classes.

(ii) C++ never truncates data

(iii)        A file pointer always contains the address of the file

(e) (i)    A copy constructor could be define be copy only part of a object’s data

(ii)  Adding a derived class to a base class requires fundamental changes to the base class.

(iii)  A class C can be derived from a class B which is derived from a class A which is derived from class


2.   (a)   Can an object of one class interact with an objects of another classes? Give suitable example to


(b) Write the feather of producer oriented, object baseband object oriented languages sparely . Also

write the merits and demerits of each.


(a)   What is meant by abstract class?  Can be create object of an abstract class?

(b)    What is polymorphism? What are the different forms of polymorphism? Write a program in C++ to

show static banding.

3.  (a)  How will you identify object  and classes in your surrounding ?

(b)  What are static data members? How are they desecrated? Write a program to display the use of

static data members.


(a)  What are the different forms of association between objects?

(b)  What are the different types of constructors available in C++? Write a program that includes all

verities of construes in it and also display the use of each one.

4.  (a) What are the uses of this pointer ?

(b)  Write a program with a class matrix. Using the concept of operating overloading, provide matrix

addition, Subtraction and multiplication facilities. The program should have suitable constructors

and member function etc.


(a)   What is inline function? Explain by giving example.

(b)    What are the advantages and limitations of using default arguments in a function? Write a

program which dines a function with three defaults argument and call the function in four

different ways.

5.  (a)  Write the difference between inherited  method and redefined  method.

(b)  How can a base class protect derived classes so that changes to the base class will not affect

them? Explain with example.


(a) In what respect protector and private data member are different?

(b) Explain the following with example:

(i) Disinheritance                       (ii) Multiply inheritance

(iii) Containership                      (IV) Static member function

6.   (a) Give the general form of defining generic functions.

(b) What is exception handling? How is it done? Write a program in C++ that illustrates the exception

handling mechanism of C++.

(a)  How can you create inserter of your own? Write the syntax of inserter function.

(b)  Write a program that reads a text file and creates another file that is identical except that every

sequence of consecutive blank spaces is replaced by a single space.

Leave a Comment