0% found this document useful (0 votes)
55 views2 pages

OOP With C++ May 2016 (2009 Scheme)

1. The document contains questions from a Diploma Examination in Object Oriented Programming with C++. It covers various concepts of OOP like classes, inheritance, function overloading, templates, and file handling. 2. Section 1 contains short answer and fill in the blank questions on class derivation, header files, arrays, and generics. Section 2-4 contain longer answer questions on basic OOP concepts, operators, inheritance, virtual functions, I/O streams, and templates. 3. Students are required to answer the compulsory questions in Section 1 and any two full questions from Sections 2-4 within the allotted time of 3 hours. The exam tests understanding of fundamental and advanced C++

Uploaded by

chethan 9731
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views2 pages

OOP With C++ May 2016 (2009 Scheme)

1. The document contains questions from a Diploma Examination in Object Oriented Programming with C++. It covers various concepts of OOP like classes, inheritance, function overloading, templates, and file handling. 2. Section 1 contains short answer and fill in the blank questions on class derivation, header files, arrays, and generics. Section 2-4 contain longer answer questions on basic OOP concepts, operators, inheritance, virtual functions, I/O streams, and templates. 3. Students are required to answer the compulsory questions in Section 1 and any two full questions from Sections 2-4 within the allotted time of 3 hours. The exam tests understanding of fundamental and advanced C++

Uploaded by

chethan 9731
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

For More Question Papers Visit - www.pediawikiblog.

com

Code : 9CS41
Register
Number

IV Semester Diploma Examination, ApriVMay-2016


OOP WITH C++

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.

(iv) A is a sgquence ofbytes.


w
(v) A is a new concept which enables us to define generic classes and
functions.
ia

(b) List the benefits of OOPS. 5


ed

SECTION - II
2. (a) Explain the basic concepts of OOP. 10
.p

(b) Explain the significance of Scope Resolution Operator. 5


w

3. (a) Explain function overloading with an example. 5


(b) Define class. Explain its declaration with syntax. 5
w

(c) What is a friend function ? List its characteristics. 5


w

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

I ot2 [Turn over

For More Question Papers Visit - www.pediawikiblog.com


For More Question Papers Visit - www.pediawikiblog.com
9CS4l 2of2 .l;-;ffii'i;*;;
tl. l:.! l. i,' fl,
j .t
rrii . !1,!
:1. /. . i,. ;11. ,, .111,
SECTION - III li ' :r'.,, ": ]. -.'ir ri"

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

6. (a) What is inheritance ? List its types. 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

10. (a) Write a note on command-line arguments. t


(b)
ed

Write general format of class template and explain with an example. 5


(c) Write a C+r program to implement function tanplate. 5
.p
w
w
w

For More Question Papers Visit - www.pediawikiblog.com

You might also like