Total No. of Questions : 4] SEAT No.
8
23
P-5404 [Total No. of Pages : 1
ic-
tat
[6186]-530
3s
S.E. (InformationTechnology) (Insem)
0:2
02 91
OBJECT-ORIENTED PROGRAMMING
0:5
0
(2019 Pattern) (Semester-III) (214444)
31
Time : 1 Hour]
2/1 13 [Max. Marks : 30
0
Instructions candidates :
0/2
.23 GP
1) Answer Q1 or Q2, Q3 or Q4.
2) Neat diagrams must be drawn wherever necessary.
E
81
3) Figures to the right side indicate marks.
8
C
23
4) Assume suitable data, if necessary.
ic-
Q1) a) Explain the features of object-oriented programming with examples. [5]
16
tat
b) Difference between static binding and late binding. [5]
8.2
3s
c) Write a program in Java to check whether the given number is palindrome
.24
0:2
or not. [5]
91
49
0:5
OR
Q2) a) Explain the four pillars of object- oriented programming with an
30
31
example. [5]
01
02
b) Difference between object- oriented programming and procedural-
0/2
GP
oriented programming. [5]
2/1
c) Write a program in Java to check whether the given number is even or
CE
odd.
81
[5]
8
23
.23
Q3) a) ic-
What are the different access modifiers? Explain its scope with a suitable
16
tat
example. [5]
8.2
3s
b) What is the need for using “this” pointer? How do we access the variables
.24
0:2
using “this” pointer? [5]
91
49
c) Explain the concept of memory allocation and de- allocation with respect
0:5
30
to OOP. [5]
31
OR
01
02
Q4) a) Explain the concept of Class as an Abstract Data Type. [5]
0/2
GP
b) How do we use the static variables and static functions in the class?
2/1
Explain with a suitable example. [5]
CE
81
c) Why do we need method overloading? Write a program to demonstrate
method overloading.
.23
[5]
16
8.2
.24
49