Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
31 views

Be - Computer Engineering - Semester 3 - 2023 - May - Object Oriented Programming Oop Pattern 2019

The document discusses object oriented programming concepts in C++ like polymorphism, operator overloading, file handling, templates and exception handling. It contains 8 questions covering these topics and asks to write programs demonstrating related concepts.

Uploaded by

rohankpawar30
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

Be - Computer Engineering - Semester 3 - 2023 - May - Object Oriented Programming Oop Pattern 2019

The document discusses object oriented programming concepts in C++ like polymorphism, operator overloading, file handling, templates and exception handling. It contains 8 questions covering these topics and asks to write programs demonstrating related concepts.

Uploaded by

rohankpawar30
Copyright
© © All Rights Reserved
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
P1528 [Total No. of Pages : 2
[6002]-157

ic-
tat
S.E. (Computer Engineering) (Artificial Intelligence & Data Science)

2s
(Computer Science & Design Engineering)

4:4
OBJECT ORIENTED PROGRAMMING (OOP)

02 91
0:4
(2019 Pattern) (Semester - III) (Theory) (210243)

0
31
6/0 13
Time : 2½ Hours] [Max. Marks : 70
0

om
6/2
Instructions to the candidates:
.23 GP

1) Endsem exam based on 3, 4, 5, 6.


2) Draw Neat and clean Diagram.
E
81

rsic-238
.c
3) Assume suitable data if necessary.
16
C

tat
Q1) a) What is runtime polymorphism? How it is achieved in C++. Explain it
8.2

es
along with example. [5]

:42
.24

b)
:44p
Explain virtual base class and virtual function with example. [6]
02P 91
49

0a
c) Explain need of operator overloading. Write C++ program to
0

demonstrate use of unary operator overloading. [6]


31
6/0 n13

OR
P0

Q2) a) Explain polymorphism and types of polymorphism in C++. [5]


6/2
8 1 io

b) Explain what is type casting, Explain Implicit and explicit type of


.23 tG

conversion with example. [6]


CE
s

38
c) Write a program to overload insertion (<<) and extraction (>>) operator
ue

c-2
in C++. [6]
i
16

tat
Q
8.2

2s

Q3) a) What are various functions which are used to manipulate file pointers?
.24

Explain using example. [7]


4:4
PU

91

b) Explain command line arguments in C++? Write program to explain the


49

0:4

same. [7]
30
31

c) What are different file opening mode? [4]


SP

01
02

OR
6/2
GP

Q4) a) Explain formatted and unformatted input and output functions used in
6/0

C++ with example. [7]


CE
81

b) What are stream classes and their use? Provide the hierarchy of stream
classes in C++. [7]
.23

c) Explain the use of command line arguments. If we want to pass


16

command line arguments what will be prototype of main function and


8.2

explain its arguments along with example. [4]


.24

P.T.O.
49
8
23
Q5) a) What is the power of templates in C++? Explain along with one example.

ic-
[5]

tat
b) Explain exception handling mechanism in C++? Write a program in C++

2s
to handle “divide by zero” exception. [6]

4:4
c) Write a short note on typename and export keyword in C++. [6]

02 91
0:4
OR

0
31
Q6) a) What is mean by user defined exception? Give one example.
6/0 13 [5]
b) Explain class template using multiple parameters. Write a program in C++.
0

om
6/2
[6]
.23 GP

c) How multiple catching is implemented in exception handling? [6]


E
81

rsic-238
.c
C

Q7) a) Explain the concept of the Standard Template Library (STL) in C++.
What are its key components? [7]
16

tat
b) Differentiate between sequence containers and associative containers in
8.2

es
:42
the STL. Provide examples of each. [7]
.24

:44p
02P 91
c) Discuss the advantages of using container adapters in the STL. Provide
49

0a
examples of container adapters. [4]
0
31
6/0 n13

OR
Q8) a) How can vectors and lists be used as sequence containers in the STL?
P0
6/2
8 1 io

Explain with a appropriate example. [7]


.23 tG

b) Explain the concept of iterators in the STL. Differentiate between iterator


sCE

and pointers. [7]

38
ue

c-2
c) Describe the process of using the STL algorithms for Quick sort. [4]
i
16

tat
Q
8.2

2s

  
.24

4:4
PU

91
49

0:4
30
31
SP

01
02
6/2
GP
6/0
CE
81
.23
16
8.2
.24

[6002]-157 2
49

You might also like