Total No. of Questions : 8] SEAT No.
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
Instructions to the candidates:
1) Answer Q.1 or Q.2, Q.3 or Q.4, Q.5 or Q.6, Q.7 or Q.8.
E
83
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
b) Write a program in C++ to use scope resolution operator. [6]
01
02
6/2
GP
c) What is friend function? What are the merits & demerits of using the
0/0
friend function? [6]
CE
83
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
operator so that it can add two complex numbers. [6]
.24
7:4
91
49
c) Write down program to overload unary operators? (Any three operators).
8:3
30
[6]
20
01
02
6/2
GP
Q3) a) Explain virtual base class & virtual function with example? [6]
0/0
b) What does inheritance mean in C++? What are different forms of
CE
83
inheritance? Give example of each. [6]
.23
c) Discuss the ways in which inheritance promotes software reuse, saves
16
time during program development and helps prevent errors. [6]
8.2
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
c) Explain class template and function template with example. [5]
OR
E
83
8
Q6) a) Explain class template using multiple parameters? Write a program in
C
23
C++. [7]
ic-
16
b) Explain name space with example. [5]
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
b) Explain error handling during file operations. [5]
01
02
c) What is the difference between opening a file with construction function
6/2
GP
& open ( ) function. [6]
0/0
OR
CE
83
8
23
Q8) a) Write a program using the open ( ), eof ( ) & getline ( ) functions to open
.23
& read file contents line by line.
ic-
[6]
16
tat
b) Explain file functions for text file and binary file operations. [7]
8.2
0s
.24
c) Explain file opening modes in detail. [4]
7:4
91
49
8:3
30
20
01
02
6/2
GP
0/0
CE
83
.23
16
8.2
.24
49
[5869]-249 2
Download FULL PDF From APP
SPPU BUDDY
Download Now
ALL SUBJECT SOLVED PAPER’S ARE HERE
Download FULL PDF From APP
SPPU BUDDY
Download Now
ALL SUBJECT SOLVED PAPER’S ARE HERE