Total No. of Questions : 8] SEAT No.
8
23
PA-1197 [Total No. of Pages : 2
ic-
[5925]-219
tat
S.E. (Electronics/E & TC/Electronics & Computer)
3s
OBJECT ORIENTED PROGRAMMING (2019
8:1
02 91
3:3
Pattern) (Semester - IV) (204194)
0
31
0/0 13
Time : 2½ Hours] [Max. Marks : 70
0
1/2
Instructions to the candidates:
.23 GP
1) Attempt Q.1 or Q.2, Q.3 or Q.4, Q.5 or Q.6, Q.7 or Q.8.
E
2) Neat diagrams must be drawn whenever necessary.
81
8
C
23
3) Figures to the right side indicate full marks.
ic-
4) Use of calculator is allowed.
16
tat
5) Assume suitable data if necessary.
8.2
3s
.24
8:1
91
49
3:3
Q1) a) What are the rules for overloading operators? [4]
30
31
b) Write down a C++ program to implement operator overloading for
01
02
complex class. [8]
1/2
GP
c) Explain Friend function with example. [6]
0/0
CE
81
8
OR
23
.23
Q2) a) What is operator overloading? Write a program to overload Unary
ic-
16
tat
operator. [8]
8.2
3s
.24
b) Write down a C++ program for copy constructor for string class. [6]
8:1
91
49
3:3
c) Differentiate friend function with normal function of the class. [4]
30
31
01
02
1/2
Q3) a) Explain containment and Inheritance along with examples. [6]
GP
0/0
b) What is Virtual function? Explain how to achieved run time
CE
81
polymorphism. [6]
.23
c) Explain function over loading & function overriding in detail. [6]
16
8.2
OR
.24
49
P.T.O.
Q4) a) What does inheritance mean in C++? Give an example of each. [6]
8
23
b) What is polymorphism? Explain with example to achieved run time
ic-
polymorphism. [6]
tat
3s
c) Write copy constructor for Employee class, in which objects of string
8:1
class and Date class are the Data members. [6]
02 91
3:3
0
31
Q5) a) 0/0 13
What is a user defined exception? Write down the scenario where we
0
require use define exceptions.
1/2 [6]
.23 GP
b) What is namespace? To demonstrate namespace with example. [6]
E
81
8
c) Explain class template & function template with example. [5]
C
23
ic-
OR
16
tat
8.2
3s
Q6) a) What is stream? Explain types of streams available in C++. [6]
.24
8:1
91
b) Explain namespace in C++ with example? [6]
49
3:3
30
c) Compare late binding & early binding. [5]
31
01
02
1/2
GP
Q7) a) Explain error handling during file operations. [6]
0/0
CE
81
8
b) Write a program using put ( ) to write characters to a file until user
23
.23
enteres a dollar sign. [6]
ic-
16
tat
c) Write a note on file operating modes. [5]
8.2
3s
.24
OR
8:1
91
49
3:3
Q8) a) Explain manipulators for file handling in C++? [5]
30
31
b) What is file pointer? Write a note on file opening & file closing. [6]
01
02
1/2
c) Explain stream classes hierarchy for file handling in C++. [6]
GP
0/0
CE
81
.23
16
8.2
.24
[5925]-219
49