0% found this document useful (0 votes)
14 views3 pages

OOP-2019 Pattern (22-23)

imp

Uploaded by

omtirankarr
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)
14 views3 pages

OOP-2019 Pattern (22-23)

imp

Uploaded by

omtirankarr
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/ 3

Total No. of Questions :8 SEATNo.

[Total No. of Pages: 3


PA-1235
5925257
S.E. (Computer/Artificiakntelligence & Data Science/

Computersden@e & Design Engineering)


OBJECTORKONTED PROGAMMINGG
607/022
(2019Pattern) (Semester II) (210243)
Time: 2h Hous IMax Marks: 70
Instructionso tte candidates:
1) AttempgQI or Q2, 03 or Q4, 05 or Q6, Q7or 08 14
2) Figure to the right indicate full marks.
3) Nea-diagrams must be drawn wherever necessar
4) Assume suitable data, if necessary. .

Q1) a) Explain the polymorphism featurë ofQOP. What are the different ways
to achieve
polymorphism iC¥+ Language? Explain them along with
examples. 51
b) What is operator overloàding?Write a program to overload '+'
for adding two complex operator
class.
numbèrs which are object of below complex
43. [61
Class Complex

Private: int real, imag


13:17:53
c)
c)
:
What is Pure virtual function? Illustrate the use 7/0N
2/20%
ofPire virtual function.
161
OR
02) a) What is runtime polymorphism? How
itisachieded
along with example. 70.5 in C++. Explain it
b) What is function overloading? Write defination of three overloaded
functions (add) which will add two integoc loat and double numbers
respectively. [61
c) Explain abstract class concept along with example. 161
PTO.
23) a) What are various functions used to manipulate file pointers? Explain
using example. 17
b) What are command line arguments in C++? Write a program to explain
the same. 17:5 17
c)What
c) P0142702/2023
are fstreay itstreamhand ofstream? Illustrate with help of examplc.
14

02/200 OR

04) a) Writea program to create file, read and write record into it. Every
recondeontams employee name, id and salary. Store and retrieve atleast
170.6
3data 171
b) What deyou mean by file
2/202313:17:53
handling? Explain the ¥ellowing functions.

P014271
4.1 171
1) openO

i) get)

ii) getline0
c) Write a program to create des a_ing constructor function.
1 7 0 .0
69
41

Q5) a) Distinguish between overlóaded function and function template wh


suitable example.

b)
b) What is an exception specification? Explain using suitable example.
1 3

61
c)
c) 7/02/
What is generic programming? How it is implemuited »C+

OR
PO.
P O
20 171

06) a) Write short note on type name and expo-key-word.


141
b)
b) Explain class template using multipleaarameteis with help of program.
6
c) Explain exception handling mechanism.in C++? Explain by program
by zero".
to handle "divide
[7
15925125S7
07) a) What is purpose of iterator and
algorithm. 141
b) What is STL? List and explain different types of STL containers. 16

c) Write a program to implemehD map in STL.

13:1OR
Q8) a) What are majbi sompanents of STL. 14
b) State functionS ofVGctor STL. Write a program to explain the same.
7/02
o0 16
c) What s container? List the container classes in C++. Explain any one
ofthem using program.
143.1

CEGPO107/4202/712023
OO0

PO142.6
271
07/02/202
1 3
13::17:5
17:5314

13.170.6
14.143 2/202
133 : 1 7 : 51
3 4

2014271
0

You might also like