Be - Electronics and Telecommunication Engineering - Semester 4 - 2024 - May - Object Oriented Programming Oop Pattern 2019
Be - Electronics and Telecommunication Engineering - Semester 4 - 2024 - May - Object Oriented Programming Oop Pattern 2019
8
23
PB3619 [6261]-24 [Total No. of Pages :2
ic-
tat
S.E. (Electronics/E & TC) (Electronics & Computer Engineering)
0s
OBJECT ORIENTED PROGRAMMING
2:2
02 91
(2019 Pattern) (Semester- IV) (204194)
3:4
0
Time : 2½ Hours ] [Max. Marks : 70
41
5/0 13
Instructions to the candidates:
0
1) Attempt Q.1 or Q.2, Q.3 or Q.4, Q.5 or Q.6, Q.7 or Q.8.
5/2
.23 GP
8
C
23
4) Use of Calculator is allowed.
ic-
5) Assume suitable data if necessary.
16
tat
8.2
0s
Q1) a) What is operator overloading? Why it is necessary to overload an
.24
2:2
91
operator? [6]
49
3:4
b) Write a program to demonstrate friend function in C++. [6]
30
41
OR
5/2
GP
8
23
c) Give a programming example that overloads = = operator with its use.[6]
.23
ic-
16
tat
8.2
Q3) a) Explain virtual base class and virtual function with example. [6]
0s
.24
2:2
3:4
30
OR
5/2
GP
Q4) a) Write a C++ program demonstrating use of the pure virtual function with
5/0
b) Discuss the role of access specifiers in inheritance and show their visibility
.23
P.T.O.
Q5) a) Explain exception handling mechanism in C++? Write a program in C++
8
23
to handle divide by zero exception? [6]
ic-
b) Explain class template using multiple parameters? Write a program in
tat
C++. [6]
0s
2:2
c) What is stream? Explain types of streams available in C++? [6]
02 91
3:4
OR
0
41
Q6) a) 5/0 13
Explain Namespace in C++ with example. [6]
0
5/2
b) Write a C++ program using function template to find the product of two
.23 GP
8
C
23
require user defined exceptions. [6]
ic-
16
tat
8.2
0s
Q7) a) Write a program using the open( ), eof( ), and getline( ) member function
.24
2:2
to open and read a file content line by line. [6]
91
49
3:4
b) Explain the role of seekg(), seekp(), tellg(), tllp(), function in the process
30
41
c) What is file mode? Explain any four file modes supported by C++. [6]
5/2
GP
OR
5/0
CE
82
8
Q8) a) Write a program using put( ) to write characters to a file until user enters
23
a dollar sign. [6]
.23
ic-
16
tat
b) Waht is the difference between opening a file with constructor function
8.2
0s
2:2
3:4
30
41
01
02
5/2
GP
5/0
CE
82
.23
16
8.2
.24
49
[6261]-24 2