Академический Документы
Профессиональный Документы
Культура Документы
Note :-
o m
Attempt one question from each section and the entire
.r c
compulsory question. AII questions carry equal marks.
SECTION-A
I .
p e
Object oriented programming allows the division ofprogqms into
m
a o
.r c
objects that representreal world entities. Justifu this statement
r p
along with its principal advantages. 13
2. b
Discussthefolloying:
p e
(a) Referencevariables
p a
(c) Defaultaqguments. r
O) Distinguish between new operator and mallocQ
b 4,4,5
SECTION-B
3. Why can a friend function be not called using the object of the
class to which it is friend ? Explain its characteristics along with
suitableexamples. .13
0920/LSL-0033 [Turn over
4. (a) Demonstateaninstancewhereoperatoroverloadingshould
be used for string manipulation opgrations. 6
SECTION-C
5. Define inheritance. What is the effect of inheritance on the visibility
of members ? Explain the concept of hybrid inheritance with a
progft[n. 13
6.
m
Howcanwe execute differentversions ofthe same functionwith
o
respect to polymorphism ? What are the implications of making
avirtual functionpure ?
.r c l3
7. p e SECTION-D
m
o
Describetheexceptiontrandlingmechanisnwithapracticalexample.
pa .r c
IVhen do we use multiple catch handlers ? 13
br
8. Distinguish between opening a file using constructor and using
e
open Q method. List the stream classes for file operations. 13
p
.
SECTION-E
p a
9.
(Co4pqlsoryQuestion)
(a) Inlinefrnctions
b r 3
092o/LSL-0033 4000