Be Computer Engineering Semester 3 2022 May Object Oriented Programming Oop Pattern 2019
Be Computer Engineering Semester 3 2022 May Object Oriented Programming Oop Pattern 2019
8
23
P627 [Total No. of Pages : 2
ic-
[5869]-249
tat
S.E. (Electronics / E & TC/Electronics & Computer)
0s
7:4
OBJECT ORIENTED PROGRAMMING (2019 Pattern)
02 91
8:3
(Semester - IV)
0
20
0/0 13
0
Time : 2½ Hours] [Max. Marks : 70
6/2
.23 GP
8
2) Neat diagrams must be drawn wherever necessary.
C
23
ic-
3) Figures to the right side indicate full marks.
16
tat
4) Use of calculator is allowed.
8.2
0s
5) Assume suitable data if necessary.
.24
7:4
91
Q1) a) What is operator overloading? Why it is necessary to overload an
49
8:3
operator? [6]
30
20
c) What is friend function? What are the merits & demerits of using the
0/0
8
OR
23
.23
ic-
Q2) a) What are the rules for over loading operators. [6]
16
tat
b) Which operators can not be overloaded? Write steps to overload +
8.2
0s
7:4
91
49
[6]
20
01
02
6/2
GP
Q3) a) Explain virtual base class & virtual function with example? [6]
0/0
OR
.24
49
P.T.O.
Q4) a) What is the ambiguity that arises in multiple inheritance? How it can be
8
23
overcome. Explain with example. [6]
ic-
b) What are types of inheritance? Explain in detail. [6]
tat
c) Discuss the role of access specifiers in inheritance and show their visibility
0s
when they are inherited as public, private protected. [6]
7:4
02 91
8:3
Q5) a) Write a C++ program involving a function template. [5]
0
20
b) 0/0 13
Explain exception handling mechanism in C++? Write a program in C++
to handle divide by zero exception. [7]
0
6/2
.23 GP
8
Q6) a) Explain class template using multiple parameters? Write a program in
C
23
C++. [7]
ic-
16
tat
8.2
0s
c) What is stream? Explain types of streams available in C++. [5]
.24
7:4
91
49
8:3
Q7) a) What is File mode? Explain any four modes supported by C++. [6]
30
20
OR
CE
83
8
23
Q8) a) Write a program using the open ( ), eof ( ) & getline ( ) functions to open
.23
tat
b) Explain file functions for text file and binary file operations. [7]
8.2
0s
.24
8:3
30
20
01
02
6/2
GP
0/0
CE
83
.23
16
8.2
.24
49
[5869]-249 2