Be Electronics and Telecommunication Engineering Semester 4 2023 November Object Oriented Programming Oop Pattern 2019
Be Electronics and Telecommunication Engineering Semester 4 2023 November Object Oriented Programming Oop Pattern 2019
8
23
P-9099 [Total No. of Pages : 2
ic-
tat
[6179]-224
7s
S.E. (Electronics / Electronics & Computer/E&TC)
8:0
02 91
OBJECT ORIENTED PROGRAMMING
9:3
0
(2019 Pattern) (Semester - IV) (204194)
30
3/1 13
Time : 2½ Hours] [Max. Marks : 70
0
2/2
.23 GP
8
C
23
3) Figures to the right indicate full marks.
ic-
4) Use of calculator is allowed.
16
tat
8.2
7s
.24
Q1) a) What is a friend function? What are the merits and demerits of using the
8:0
91
friend function? [6]
49
9:3
30
operators. [6]
2/2
GP
3/1
OR
CE
82
8
23
Operator? [6]
.23
ic-
16
7s
8:0
91
49
9:3
b) What is containment? Explain with the help of String. Date and Employee
2/2
GP
class. Objects of Date and String classes are data members of Employee
3/1
Class. [6]
CE
82
OR
8.2
P.T.O.
.24
49
Q4) a) Write a C++ program demonstrating use of the pure virtual function
8
23
with the use of base and derived classes. [6]
ic-
b) Discuss the role of access specifiers in inheritance and show their visibility
tat
when they are inherited as public, private and protected. [6]
7s
c) What is the ambiguity that arises in multiple inheritance? How it can be
8:0
02 91
overcome. Explain with example. [5]
9:3
0
30
Q5) a) 3/1 13
Explain exception handling mechanism in C++? Write a program in C++
0
to handle divide by zero exception?
2/2 [6]
.23 GP
8
C
23
c) What is stream? Explain types of streams available in C++? [6]
ic-
OR
16
tat
8.2
7s
.24
8:0
b) Write a C++ program using function template to find the product of two
91
49
Q7) a) Write a program using the open(), eof() and getline() member function
CE
8
23
.23
tat
8.2
7s
c) What is file mode? Explain any four file modes supported by C++. [6]
.24
8:0
OR
91
49
9:3
Q8) a) Write a program using put() to write characters to a file until user enters
30
30
16
8.2
.24
[6179]-224 2
49