OOP With C++ May 2016 (2009 Scheme)
OOP With C++ May 2016 (2009 Scheme)
com
Code : 9CS41
Register
Number
m
Time:3Hoursl I Max. Marks : 100
co
Note : (i) Section -lis compulsory.
(ii) Answer any two full questions from Sections - II, III & IV.
g.
lo
SECTION.I
l. (a) Fill in the blanks with appropriate word/s : 5x I =5
(i)
ib
The process of deriving a class from another class is known as
-
ik
(iii) Setw( ) function is available in header file.
SECTION - II
2. (a) Explain the basic concepts of OOP. 10
.p
4. (a) Write a C++ program to odd 2 distance objects using "objects of arguments"
concept. t0
(b) Explain copy constructor with an example. 5
5. (a) Write a C++ program to overload the binary '*' operator to add two complex
numbers. l0
(b) List any five rules for overloading operators. 5
m
(b) Write a C+r program to illustrate multi-level inheritance. l0
co
7. (a) Explain the concept of Virtual Base Classes. 5
(b) Write a program to implernent a virtual function. l0
g.
SECTION- IV
8. (a) Explain with syntax and example writ{) function. 5
lo
(b) Explain with syntax and example : 5+5:10
(i) width( )
(ii) precision( )
IOS format functions. ib
ik
9. (a) Definemanipulators. Listdifferentbuilt-inmanipulaton. 5
(b)
w
List file stream classes and its conte,nts. 6
(c) Explain seekg( ) and te[e( ) functions 4
ia