Total No. of Questions : 4] SEAT No.
8
23
PC401 [Total No. of Pages : 1
[6359]-521
ic-
tat
S.E. (Computer Engineering) (Computer Science & Design Engg.)/
0s
(Artificial Intelligence & Data Science Engg.) (Computer Science) (Insem)
3:5
OBJECT ORIENTED PROGRAMMING
02 91
0:3
(2019 Pattern) (Semester-III) (210243)
0
41
Time : 1 Hour]
9/1 13 [Max. Marks : 30
0
Instructions to the candidates:
0/2
.23 GP
1) Answer Q1 or Q2, Q3 or Q4.
2) Assume suitable data if necessary.
E
80
8
C
23
Q1) a) Compare Procedure Oriented programming vs Object Oriented
ic-
Programming. [4]
16
tat
8.2
b) Explain C++ data type union and enumeration with example. [5]
0s
.24
3:5
c) Explain static data and static function with program. [6]
91
49
0:3
OR
30
41
Q2) a) What is encapsulation? Why it is important in object-oriented
programming? [4]
01
02
0/2
b) What is the purpose of constructor and destructor in object-oriented
GP
programming? How are they used in class? [5]
9/1
CE
c) Write a class “Person” with attributes like name, age & address. Include
80
38
appropriate constructor & member functions to set & display these
c-2
.23
attributes. [6]
i
16
tat
Q3) a) Explain friend function.Write a program to demonstrate it in C++. [5]
8.2
0s
b) Discuss the memory management using keywords ‘new’ and “delete”.[5]
.24
3:5
91
c) What is multi-level inheritance? Explain with an example, how it can be
49
0:3
implemented in C++. [5]
30
41
OR
01
02
Q4) a) Explain friend class. Write a program to demonstrate friend class in
0/2
GP
C++. [5]
9/1
b) Explain Function overloading and function overriding with example. [5]
CE
80
c) Explain public, private and protected inheritance And give example of
.23
private Inheritance with explanation. [5]
16
8.2
eeee
.24
49