OOPs C++ Major 2023
OOPs C++ Major 2023
ES203
[ET]
cJcme-nu. (4}
P,T.O.
ES203 2
(b) Suppose th at t he following code fra gm en t is
ex ec ut ed .
co ns t int LENGTH = 21 ;
ch ar me ss ag e[ LE NG TH ];
co ut << .. En ter a se nt en ce
on th e lin e be lo w. " <<
endl;
cin~getlinc(messagc, LE NG
TH , '\n ');
co ut << me ss ag e << en dl
;
In th e pr om pt , the interact
ive user types th e
foil owing line and presses En
ter: Please go away.
:,
~
~ ES203 3 1120
I
~
What will the output of the code fragmen t look
~
like? (2)
~
I
r'
~ 3 (a) Write a program in C++ to illustrat e the use of
P .T.O.
ES203 4 1120
(2)
of bathrooms.
P.T.O.
ES203 6 1120
data 1ne1nbcr.
(Compulsory)
Paise
a minimum of Rs 3000/
P..T.O.
ES203 8
1120
(b) Write a C++ Program to Swap data using function
class template
(6)
(2100)
'