Be Computer Engineering Semester 3 2022 November Object Oriented Programming Oop Pattern 2019
Be Computer Engineering Semester 3 2022 November Object Oriented Programming Oop Pattern 2019
8
23
PA-1235 [Total No. of Pages : 3
ic-
[5925]-257
tat
6s
S.E. (Computer/Artificial Intelligence & Data Science/
9:0
02 91
Computer Science & Design Engineering)
3:1
0
OBJECT ORIENTED PROGRAMMING
31
7/0 13
(2019 Pattern) (Semester - III) (210243)
0
2/2
.23 GP
8
Instructions to the candidates:
C
23
1) Attempt Q1 or Q2, Q3 or Q4, Q5 or Q6, Q7or Q8.
ic-
16
tat
8.2
6s
3) Neat diagrams must be drawn wherever necessary.
.24
9:0
4) Assume suitable data, if necessary.
91
49
3:1
30
31
Q1) a) Explain the polymorphism feature of OOP. What are the different ways
01
examples.
2/2
[5]
GP
for adding two complex numbers which are object of below complex
CE
80
8
23
class. [6]
.23
tat
{
8.2
6s
9:0
91
49
};
3:1
30
c) What is Pure virtual function? Illustrate the use of Pure virtual function.
31
01
[6]
02
2/2
OR
GP
7/0
[5]
b) What is function overloading? Write defination of three overloaded
.23
functions (add) which will add two integer, float and double numbers
16
respectively. [6]
8.2
P.T.O.
Q3) a) What are various functions used to manipulate file pointers? Explain
8
using example.
23
[7]
ic-
b) What are command line arguments in C++? Write a program to explain
tat
the same. [7]
6s
9:0
c) What are fstream, ifstream and ofstream? Illustrate with help of example.
02 91
3:1
[4]
0
31
7/0 13 OR
0
2/2
Q4) a) Write a program to create file, read and write record into it. Every
.23 GP
record contains employee name, id and salary. Store and retrieve atleast
E
3 data.
80
[7]
8
C
23
b) What do you mean by file handling? Explain the following functions.
ic-
16
tat
[7]
8.2
6s
i) open()
.24
9:0
91
49
3:1
ii) get()
30
31
iii) getline()
01
02
2/2
GP
8
23
.23
6s
9:0
91
[6]
49
3:1
30
[7]
01
02
OR
2/2
GP
[4]
CE
80
[6]
16
[5925]-257 2
Q7) a) What is purpose of iterator and algorithm. [4]
8
23
b) What is STL? List and explain different types of STL containers. [6]
ic-
tat
c) Write a program to implement map in STL. [8]
6s
OR
9:0
02 91
3:1
Q8) a) What are major components of STL. [4]
0
31
b) 7/0 13
State functions of vector STL. Write a program to explain the same.
0
2/2 [6]
.23 GP
c) What is container? List the container classes in C++. Explain any one
of them using program.
E
[8]
80
8
C
23
ic-
16
tat
8.2
6s
.24
9:0
91
49
3:1
30
31
01
02
2/2
GP
7/0
CE
80
8
23
.23
ic-
16
tat
8.2
6s
.24
9:0
91
49
3:1
30
31
01
02
2/2
GP
7/0
CE
80
.23
16
8.2
.24
49
[5925]-257 3