Be - Electronics and Telecommunication Engineering - Semester 4 - 2022 - November - Object Oriented Programming Oop Pattern 2019
Be - Electronics and Telecommunication Engineering - Semester 4 - 2022 - November - Object Oriented Programming Oop Pattern 2019
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
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
8
OR
23
.23
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
polymorphism. [6]
.23
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
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
8
b) Write a program using put ( ) to write characters to a file until user
23
.23
tat
c) Write a note on file operating modes. [5]
8.2
3s
.24
OR
8:1
91
49
3:3
b) What is file pointer? Write a note on file opening & file closing. [6]
01
02
1/2
16
8.2
.24
[5925]-219
49