Nov - Dec - 2022 (2) Dwds
Nov - Dec - 2022 (2) Dwds
8
23
PA-1245 [Total No. of Pages : 2
ic-
tat
[5925]-268
3s
S.E. (Information Technology)
3:3
02 91
OBJECT ORIENTED PROGRAMMING
3:4
0
31
(2019 Pattern) (Semester - III) (214444)
5/0 13
Time : 2½ Hours] [Max. Marks : 70
0
2/2
Instructions to the candidates:
.23 GP
8
C
23
3) Figurest to the right side indicate full marks.
ic-
4) Assume suitable data if necessary.
16
tat
8.2
3s
Q1) a) What is Constructor? What are the characteristics of the Constructor?
.24
3:3
Explain Constructor Overloading with an example? [9]
91
49
3:4
b) Write a short note on : [9]
30
31
OR
5/0
Q2) a) Design a class ‘Complex’ with data members for real and imaginary
CE
80
8
23
in JAVA to perform a Subtraction of two complex numbers. [9]
.23
tat
8.2
3s
Q3) a) Define Inheritance. What are the types of Inheritance? How can you
.24
3:3
91
3:4
[8]
01
02
OR
2/2
GP
P.T.O.
49
Q5) a) What is an exception? Explain the following terms with respect to
8
23
exception handling: [9]
ic-
i) try
tat
ii) catch
3s
iii) throw
3:3
02 91
iv) finally
3:4
b) Write a generic method to count the number of elements in a collection
0
31
5/0 13
that have a specific properties like odd integers, prime numbers and
palindrome. [9]
0
2/2
.23 GP
OR
Q6) a) Explain ArrayList class with an example. [9]
E
80
8
b) Write a java program to accept and display the month number. Throw
C
23
number format exception if improper month number is entered. [9]
ic-
16
tat
8.2
3s
Q7) a) Explain FileinputStream class. Write any four methods of File Input stream
.24
i) Create a File
31
OR
80
8
23
Q8) a) Write a short note on : [8]
.23
i) Iterator ic-
16
tat
ii) Singleton
8.2
3s
3:3
91
Files. Student has Student-id, name, Roll_no, Class, marks and address.
49
3:4
i) Create Database
01
02
v) Search Record
.23
16
8.2
.24
[5925]-268 2
49