Monday, November 23, 2015

B. C. A. ( Semester - IV ),2013 Question Paper,OBJECT ORIENTED PROGRAMMING USING C++,University Of Pune Question Paper

University Of Pune Question Paper
B. C. A. ( Semester - IV ) Examination - 2013
OBJECT ORIENTED PROGRAMMING USING C++
(New 2008 Pattern)
Time : 3 Hours] [Max. Marks : 80
Instructions :
(1) All questions are compulsory.
(2) Black figures to the right indicate full marks.
(3) All questions are carry equal marks.
(4) Neat diagrams must be draw wherever necessary.
(5) Assume suitable data, if necessary.
Q.1) Attempt any eight of the following : [8x2=16]
(a) What is Polymorphism ? List the types of Polymorphism.
(b) What is Generic Pointer ?
(c) What is the difference between cin and getline ?
(d) List any four operators introduced by C++.
(e) Define :
(i) Dynamic Binding
(ii) Message Passing
(f) Give any four special characteristics of Constructor.
(g) What is Friend Function ?
(h) Give any four File Mode Parameters.
(i) What is an Abstract Class ?
(j) What is the use of read( ) and write( ) function in C++ ?
[4373]-405 1 P.T.O.
Seat
No.
Q.2) Attempt any four of the following : [4x4=16]
(a) Explain how to define a member function outside a class definition
and inside a class definition with the help of suitable example.
(b) What is Constructor ? Explain Dynamic Constructor with the help
of suitable example.
(c) What is Inline Function ? Explain with suitable example difference
between Macro and Inline Function.
(d) Create a class student having following members :
– Rollno
– Name
– Percentage
Write necessary member function to accept student details and
display details along with class obtained depending on percentage.
(e) Write a C++ program to accept ‘n’ numbers through command
line argument and store all old numbers and all even numbers
into different array and display both array.
Q.3) Attempt any four of the following : [4x4=16]
(a) Explain with suitable example operator overloading using Friend
Function.
(b) Explain Pure Virtual Function with the help of suitable example.
(c) Design a C++ base class, Customer(name, phone_number). Derive
a class Depositer (accno, balance from customer). Derive a class
Borrower (loan_no, loan_amt) from Depositer. Write a necessary
member functions to read and display the details of ‘n’ Borrower.
(d) Write a C++ program to display number of vowels present in a
given file.
[4373]-405 2 Contd.
(e) Trace output of the following program and explain it.
Assume there is no syntax error :
#include <iostream.h>
#include <math.h>
main( )
{
cout.precision(3);
cout << sqrt(4) << “\n”;
cout.precision(2);
cout << 2.3456 << “\n”;
cout << 3.50012 << “\n”;
cout.width(5);
cout << 123;
cout.width(3);
cout << 45;
}//end of main
Q.4) Attempt any four of the following : [4x4=16]
(a) Explain multiple inheritance with the help of suitable example.
(b) Explain use of setfill( ) and setiosflags( ) manipulators with the
help of suitable example.
(c) Explain the functions used for manipulation of file pointers.
(d) Consider a C++ class
class matrix
{ int a[4] [4];
 public :
 // member functions
}
Write a necessary member function to accept and display matrix.
Let m1
 and m2 are two matrices. Find out m3
 = m1
 + m2
 (overload
‘+’ operator).
(e) Design a C++ class contain member function display( ). Write a
program to count number of times display( ) function is called.
(Use static data member)
[4373]-405 3 P.T.O.
Q.5) Attempt any four of the following : [4x4=16]
(a) Write a note on Function Templates.
(b) Write properties of Static Member Function. Explain Static
Member Function with the help of suitable example.
(c) Write a C++ program to sort n integer numbers and n float numbers
in ascending order using function overloading.
(d) Write a C++ program to calculate simple interest amount. Use
default value for rate.
(e) Trace output of the following program and explain it.
Assume there is no syntax error :
#include <iostream.h>
Class base
{ public :
virtual void fun( )
{ cout << “function of base”; }
void run( )
{ fun( ); }
};
Class derived : public base
{ public :
void fun( )
{ cout << “function of derived”; }
};
void main( )
{
derived d;
d.run( );
}
Share This
Previous Post
Next Post

B.E Civil Engineer Graduated from Government College of Engineering Tirunelveli in the year 2016. She has developed this website for the welfare of students community not only for students under Anna University Chennai, but for all universities located in India. That's why her website is named as www.IndianUniversityQuestionPapers.com . If you don't find any study materials that you are looking for, you may intimate her through contact page of this website to know her so that it will be useful for providing them as early as possible. You can also share your own study materials and it can be published in this website after verification and reviewing. Thank you!

0 comments:

Pen down your valuable important comments below

Search Everything Here