RGPV Exam Papers BE Object Oriented Programming Methodology 3rd Sem Dec 2007
RGPV Exam Papers BE
Object Oriented Programming Methodology 3rd Sem Dec 2007
Note. (i) Answer all these question .
(ii) Total six Question are to be attempted
(iii) There is in internal choice in every question
(iv) Answer of all objective question 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
(a) (i) The C++ programming language was invented by ………….
(ii) Bunding data and functions together is called ………….
(iii) The ability of a function or the operator to act in different ways on different data types is
(b) (i) Classes that are intend for creation of objects are called …… classes.
(ii) Default values of data or function in a class are …….
(iii) The inline function save the execution time but take more memory space because………………
© (i) The destructors are executed in …………… order .
(ii) A member of a class can be accessed via. Object pointer using …………….. operator .
(iii) The complier time polymorphism is a means of achieving one interface …………….
(d) (i) An operator function cannot have a …………………. Statement in its body .
(ii) The return type of an operator function is in general ………….. for which it is defined.
(iii) When base class is inherited as private by the derived class all member function become
…………… to the derived classes .
(e) (i) Virtual functions are ………… in order of inheritance .
(ii) The yearly binding refers to events that occurs at ………. Time .
(iii) Virtual functions are used to create pointer to …………….. classes .
2. (a) Write the merits and demerits of object oriented language as compared to procedure oriented
(b) What is the the purpose of class diagram ? Describe icons used for class relationship . How can be
use object as software modules ?
(a) Explain hierarchy of class with examples .
(b) What is intendance ? What are the different forms of inheritance
Write suitable codes to illustrate them .
3. (a) What is the difference between active and passive object ?
(b) Explain the following by giving suitable examples :
(a) What is meant by nesting of member functions? Explain by giving example.
(b) Write a program in C++ using class to add two distance interned in feed and inches and store the
result in third distance . Pass two distances as argument to a function and the function should
return the added distance .Use required constructor and methods in your program .
4. (a) Explain recursive association by giving examples .
(b) What are difference data type conversation possible inC++ ? How these conversation can be
achieved ? Write a program to illustrate conversion corm a user define data types to a built –in
data type .
(a) How copy consider can be deiced ? In what situations use of copy consider is nesserry .
(b) What are the limitations of overloaded operator function ? Write a program in C++ to overloaded
unary operator using friend function .
5. (a) What is the importance of abstract base class ?
(b) What are the access control specifies ? Discuss the role of each one of them in inheritances .
(a) Explain how dynamic binding is achieved in C++ .
(b) What is the importance of pure virtual function ? In a program define a class shape containing
float type data radius and height and member function get data () , pure virtual function volume
() . Define three derived class sphere , cylinder and cone and also redefine pure virtual function
volume () In each derived class so that it gives volume of corresponding solid .
6. (a) What are to ways to f0rmating out put information In C++ ?
(b) Create a class string to accept a string whose length is not know. Accept and display the string
using extractor and instars functions .
(a) What is a container ? What are its different types ?
(b) Write a program that creates a disk file employee class . The employee class contains employee
no. , name, department name , basic pay and allowances as data and member function get data
() and show (). Write for object records on the file , close it . Now read the file from beginning
and display all records in tabular form.