Be - Computer Engineering - Semester 3 - 2023 - May - Object Oriented Programming Oop Pattern 2019
Be - Computer Engineering - Semester 3 - 2023 - May - Object Oriented Programming Oop Pattern 2019
8
23
P1528 [Total No. of Pages : 2
[6002]-157
ic-
tat
S.E. (Computer Engineering) (Artificial Intelligence & Data Science)
2s
(Computer Science & Design Engineering)
4:4
OBJECT ORIENTED PROGRAMMING (OOP)
02 91
0:4
(2019 Pattern) (Semester - III) (Theory) (210243)
0
31
6/0 13
Time : 2½ Hours] [Max. Marks : 70
0
om
6/2
Instructions to the candidates:
.23 GP
rsic-238
.c
3) Assume suitable data if necessary.
16
C
tat
Q1) a) What is runtime polymorphism? How it is achieved in C++. Explain it
8.2
es
along with example. [5]
:42
.24
b)
:44p
Explain virtual base class and virtual function with example. [6]
02P 91
49
0a
c) Explain need of operator overloading. Write C++ program to
0
OR
P0
38
c) Write a program to overload insertion (<<) and extraction (>>) operator
ue
c-2
in C++. [6]
i
16
tat
Q
8.2
2s
Q3) a) What are various functions which are used to manipulate file pointers?
.24
91
0:4
same. [7]
30
31
01
02
OR
6/2
GP
Q4) a) Explain formatted and unformatted input and output functions used in
6/0
b) What are stream classes and their use? Provide the hierarchy of stream
classes in C++. [7]
.23
P.T.O.
49
8
23
Q5) a) What is the power of templates in C++? Explain along with one example.
ic-
[5]
tat
b) Explain exception handling mechanism in C++? Write a program in C++
2s
to handle “divide by zero” exception. [6]
4:4
c) Write a short note on typename and export keyword in C++. [6]
02 91
0:4
OR
0
31
Q6) a) What is mean by user defined exception? Give one example.
6/0 13 [5]
b) Explain class template using multiple parameters. Write a program in C++.
0
om
6/2
[6]
.23 GP
rsic-238
.c
C
Q7) a) Explain the concept of the Standard Template Library (STL) in C++.
What are its key components? [7]
16
tat
b) Differentiate between sequence containers and associative containers in
8.2
es
:42
the STL. Provide examples of each. [7]
.24
:44p
02P 91
c) Discuss the advantages of using container adapters in the STL. Provide
49
0a
examples of container adapters. [4]
0
31
6/0 n13
OR
Q8) a) How can vectors and lists be used as sequence containers in the STL?
P0
6/2
8 1 io
38
ue
c-2
c) Describe the process of using the STL algorithms for Quick sort. [4]
i
16
tat
Q
8.2
2s
.24
4:4
PU
91
49
0:4
30
31
SP
01
02
6/2
GP
6/0
CE
81
.23
16
8.2
.24
[6002]-157 2
49