Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Total No. of Questions : 4] SEAT No.

8
23
P-5395 [Total No. of Pages : 1

ic-
tat
[6186]-521

7s
S.E. (Computer Engg./Artificial Intelligence & Data

0:0
Science/Computer Science &Design Engg.) (In Sem.)

02 91
0:5
0
OBJECT ORIENTED PROGRAMMING

31
1/1 13
(2019 Pattern) (Semester - III) (210243)
0

om
0/2
Time : 1 Hour] [Max. Marks : 30
.23 GP

Instructions to the candidates :


1) Attempt Q1 or Q2, Q3 or Q4.
E
81

rsic-238
.c
2) Figures to the right indicate full marks.
C

3) Draw neat & labelled diagrams wherever necessary.


4) Assume suitable data, if necessary.
16

tat
8.2

es
Q1) a) What are advantages of object oriented programming over procedural

:07
.24

:50p
oriented programming? [4]
02P 91
49

0a
b) What is polymorphism? How does it relate to function overloading? [5]
0

c) What a class ''Student'' with attributes like name, roll number & mark.
31
1/1 n13

Include member functions to set & display these attributes? [6]


OR
P0
0/2
8 1 io

Q2) a) State differences between abstraction and encapsulation. [4]


.23 tG

b) What are C++ access specifiers? Write down their significance. [5]
CE

c) Write a class ''Calculator'' with methods for addition, subtraction, multiplication


s

38
and division functions. Create a object to perform arithmetic operation. [6]
ue

c-2
i
16

Q3) a) Define Function overloading and Write a program for swapping two
tat
Q
8.2

integer numbers, two float numbers and two characters using function
7s

overloading.
.24

[5]
0:0
PU

91

b) What is the use of 'this' pointer? Explain with example. [5]


49

0:5

c) Explain public, private and protected inheritance. And give example of


30
31

protected Inheritance with explanation. [5]


SP

01
02

OR
0/2

Q4) a) Define Function overriding in C++ and Write a program to demonstrate


GP

the same. [5]


1/1

b) What are types of inheritance. Explain them with syntax.


CE

[5]
81

c) Define function pointers? Give its Syntax of declaration, Referencing


.23

and Dereferencing. Write a program for it in C++. [5]


16
8.2


.24
49

You might also like