Total No. of Questions : 8] SEAT No.
8
23
P-9136 [Total No. of Pages : 2
ic-
tat
[6179]-262
4s
9:0
S.E. (Information Technology)
02 91
9:3
OBJECT ORIENTED PROGRAMMING
0
40
3/0 13
(2019 Pattern) (Semester - III) (214444)
0
1/2
Time : 2½ Hours] [Max. Marks : 70
.23 GP
Instructions to the candidates :
E
80
1) Answer Q.1 or Q.2, Q.3 or Q.4, Q.5 or Q.6, Q.7 or Q.8.
8
C
23
2) Neat diagrams must be drawn wherever necessary.
ic-
3) Figures to the right indicate full marks.
16
tat
4) Assume suitable data, if necessary.
8.2
4s
.24
9:0
91
Q1) a) What is a constructor? Explain the Default constructor with an example.[6]
49
9:3
30
b) Create a Bookshop inventory class. Use appropriate constructors for
40
Bookshop Management. [6]
01
02
1/2
c) Can we overload the constructor? Explain with Example. [6]
GP
3/0
OR
CE
80
8
Q2) a) Explain the Parameterized constructor and Copy constructor with an
23
.23
example. [6]
ic-
16
tat
b) What is garbage collection? Explain the finalize () method in detail. [6]
8.2
4s
c) What is a destructor? Differentiate between Constructor and Destructor.
.24
9:0
91
[6]
49
9:3
30
40
01
Q3) a) What is inheritance? Explain different types of Inheritance. [6]
02
1/2
GP
b) What is an interface in Java? What is the difference between interface
3/0
and abstract class? [5]
CE
80
c) What is polymorphism? What are the different types of polymorphism?
.23
Explain with an example. [6]
16
OR
8.2
P.T.O.
.24
49
Q4) a) Design and develop inheritance for a given case study, identify objects
8
23
and relationships and implement inheritance wherever applicable,
ic-
Employee class has Emp_name, Emp_id, Address, Mail_id and
tat
Mobile_noas members. Inherit the classes: Programmer, Team Lead,
4s
Assistant Project Manager and Project Manager from the employee class.
9:0
Add Basic Pay (BP) as the member of all the inherited classes with 97%
02 91
of BP as DA, 10% of BP as HRA, 12% of BP as PF, and 0.1% of BP
9:3
for staff club fund. Generate pay slips for the employees with their
0
40
3/0 13
gross and net salary. [9]
b) Explain the concept of Method Overloading and method overriding with
0
1/2
.23 GP
examples. [8]
E
80
8
Q5) a) What is the Exception exception-handling mechanism in Java? Write a
C
23
java program to handle the Divide by zero exception. [8]
ic-
16
b) Explain user-defined exception with an example. [5]
tat
8.2
4s
c) Explain Collection classes in detail. [5]
.24
9:0
OR
91
49
9:3
Q6) a) What is a generic method? Explain with a suitable example. [6]
30
b) Explain the use of finally in exception handling with an example. [4]
40
01
c) Write a program Java to handle Array Index Out of Bounds Exception
02
and Null Pointer Exception with the program. [8]
1/2
GP
3/0
CE
Q7) a) Define the term Stream. Explain various stream classes. [8]
80
8
23
b) Design a Java program for employee management with following
.23
operations - [9]
ic-
16
tat
i) Create file
8.2
4s
ii) Write data into file
.24
9:0
91
iii) Read data from file. Consider Name, employee id and department
49
9:3
as attributes of employee.
30
40
OR
01
02
Q8) a) Which are different types of Design patterns? [6]
1/2
GP
b) Explain the Iterator Pattern and its advantages in detail. [6]
3/0
c) Explain the Adapter pattern and its advantages in detail. [5]
CE
80
.23
16
8.2
.24
[6179]-262 2
49