Sunday, January 3, 2016

VTU Object Oriented Programming using C++ June 2015 Question Paper

VTU Question Paper
Sixth Semester Exam
B.E. Degree Examination
Object Oriented Programming using C++
June / July 2015 Question Paper
Maximum Marks : 100
Time: 3 Hours

Note: Answer any FIVE full questions, selecting atleast TWO questions from each part.

1 a. Enumerate the salient features of procedure oriented programming. (06 Marks)
b. List a few areas of applications of object oriented programming technology. (04 Marks)
c. Write an interactive C++ program using 'switch - case' statements to find the roots of the quadratic equation (ax ' + bx + c = 0) for handling all possible cases. (10 Marks)
2 a. What are user defined data types? Discuss structure, union, class and enumeration data types with its general form. (08 Marks)
b. Describe the scope resolution operator with suitable example. (06 Marks)
c. What do you mean by function prototyping? Give the general form of function prototyping. With a suitable example explain function declaration and function definition. (06 Marks)
3 a. Write a C++ program to swap two integer values using 'pass by value' and 'pass by reference'. (08 Marks)
b. What is an inline function? State the general form of inline function. Discuss the situations where inline functions may not work. (06 Marks)
c. What do you mean by overloading of a function? When do we use this concept? Write a C++ program using function overloading to compute volume of a 'cube' and a rectangular box. (06 Marks)
4 a. When do we declare a data-member of a class static? What are its characteristics? (04 Marks)
b. List some of the special characteristics of a friend function. (06 Marks)
c. Write a definition for a class 'complex'.
Private members:
Real part and imaginary part of floating point type.
Member functions :
void set(float, float) : to set specified value in object.
void disp( ) : to display complex number object.
Complex sum(complex); to sum two complex numbers and return complex number.
i) Write the definitions for each of the above member functions
ii) Write the main function to create three complex number objects. Set the value in two objects and call 'sum( )' to calculate sum; assign it in third object. Display all complex numbers. (10 Marks)

5 a. What are default constructors? Give the general form of default constructor. List out the characteristics of constructor functions. (08 Marks)
b. What do you mean by overloaded constructs in a class? Explain with suitable example. (08 Marks)
c. What is a copy constructor? Explain with examples. (04 Marks)
6 a. What is an operator function? Describe the syntax of a operator function. How many arguments are required in the definition of an overloaded unary and binary operators? (06 Marks)
b. With a suitable program, explain how to overload the binary addition operator. (08 Marks)
c. What is a conversion function? Explain the syntax of conversion function. List the conditions to be satisfied for a casting operator. function. (06 Marks)
7 a. What is inheritance? Explain different types of inheritance with the help of block diagrams. (08 Marks)
b. Explain the effect of inheritance on the visibility of class members. (06 Marks)
c. With diagrams explain access control mechanism in classes and also show the simplified view of access control to members of a class. (06 Marks)
8 a. List out the basic rules that should satisfy the compiler requirements for virtual functions. (08 Marks)
b. Describe the stream classes in C++. (06 Marks)
c. Describe the classes for file stream operations. (06 Marks)

Share This
Previous Post
Next Post

Pellentesque vitae lectus in mauris sollicitudin ornare sit amet eget ligula. Donec pharetra, arcu eu consectetur semper, est nulla sodales risus, vel efficitur orci justo quis tellus. Phasellus sit amet est pharetra


Pen down your valuable important comments below