0% found this document useful (0 votes)
35 views

Be - Electronics and Telecommunication Engineering - Semester 4 - 2024 - May - Object Oriented Programming Oop Pattern 2019

Uploaded by

omii86240
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

Be - Electronics and Telecommunication Engineering - Semester 4 - 2024 - May - Object Oriented Programming Oop Pattern 2019

Uploaded by

omii86240
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Total No. of Questions : 8] SEAT No.

8
23
PB3619 [6261]-24 [Total No. of Pages :2

ic-
tat
S.E. (Electronics/E & TC) (Electronics & Computer Engineering)

0s
OBJECT ORIENTED PROGRAMMING

2:2
02 91
(2019 Pattern) (Semester- IV) (204194)

3:4
0
Time : 2½ Hours ] [Max. Marks : 70

41
5/0 13
Instructions to the candidates:
0
1) Attempt Q.1 or Q.2, Q.3 or Q.4, Q.5 or Q.6, Q.7 or Q.8.
5/2
.23 GP

2) Neat diagrams must be drawn wherever necessary.


3) Figures to the right indicate full marks.
E
82

8
C

23
4) Use of Calculator is allowed.

ic-
5) Assume suitable data if necessary.
16

tat
8.2

0s
Q1) a) What is operator overloading? Why it is necessary to overload an
.24

2:2
91
operator? [6]
49

3:4
b) Write a program to demonstrate friend function in C++. [6]
30
41

c) What are the rules for overloading operators? [6]


01
02

OR
5/2
GP

Q2) a) Explain friend function with example? [6]


5/0
CE

b) What are the rules for overloading operators? [6]


82

8
23
c) Give a programming example that overloads = = operator with its use.[6]
.23

ic-
16

tat
8.2

Q3) a) Explain virtual base class and virtual function with example. [6]
0s
.24

2:2

b) Discuss the ways in which inheritance promotes software reuse, saves


91

time during program development and helps prevent errors. [6]


49

3:4
30

c) What does inheritance mean in C++? What are different forms of


41

inheritance? Give an example of each. [5]


01
02

OR
5/2
GP

Q4) a) Write a C++ program demonstrating use of the pure virtual function with
5/0

the use of base and derived classes. [6]


CE
82

b) Discuss the role of access specifiers in inheritance and show their visibility
.23

when they are inherited as public, private and protected. [6]


16

c) What is the ambiguity that arisesin multiple inheritance? How it can be


8.2

overcome? Explain with example. [5]


.24
49

P.T.O.
Q5) a) Explain exception handling mechanism in C++? Write a program in C++

8
23
to handle divide by zero exception? [6]

ic-
b) Explain class template using multiple parameters? Write a program in

tat
C++. [6]

0s
2:2
c) What is stream? Explain types of streams available in C++? [6]

02 91
3:4
OR

0
41
Q6) a) 5/0 13
Explain Namespace in C++ with example. [6]
0
5/2
b) Write a C++ program using function template to find the product of two
.23 GP

integer or floating-point type of data. [6]


E
82

c) What is a user defined exception? Write down the scenario where we

8
C

23
require user defined exceptions. [6]

ic-
16

tat
8.2

0s
Q7) a) Write a program using the open( ), eof( ), and getline( ) member function
.24

2:2
to open and read a file content line by line. [6]
91
49

3:4
b) Explain the role of seekg(), seekp(), tellg(), tllp(), function in the process
30
41

of random access in a file. [5]


01
02

c) What is file mode? Explain any four file modes supported by C++. [6]
5/2
GP

OR
5/0
CE
82

8
Q8) a) Write a program using put( ) to write characters to a file until user enters

23
a dollar sign. [6]
.23

ic-
16

tat
b) Waht is the difference between opening a file with constructor function
8.2

0s

and opening a file with open ( ) function? [5]


.24

2:2

c) Explain erroe handling during file operation. [6]


91
49

3:4
30
41
01
02


5/2
GP
5/0
CE
82
.23
16
8.2
.24
49

[6261]-24 2

You might also like