Total No. of Questions : 5] SEAT No.
82
PC-1583
ic-
[Total No. of Pages : 2
t
sta
[6328]-55
5
6:2
T.Y. [Link] (Computer Science)
1
3:2
1/2 21
CS - 355 : OBJECT-ORIENTED PROGRAMMING USING
41
JAVA - I
0/1 10
02
(Revised 2019) (Semester - V)
0
9.8 AP
Time : 2 Hours] [Max. Marks : 35
49 CA
Instructions to the candidates :
23
82
1) Answer all Questions.
ic-
2) Figures to the right indicate full marks.
.21
tat
5s
2.1
6:2
Q1) Attempt any Eight of the following (out of Ten) : [8 × 1 = 8]
11
20
3:2
a) What is Bytecode?
02
41
b) Write any two characteristics of Inheritance
02
01
c) What is use of 'this' keyword.
1/2
AP
d) "Is it possible to overload a constructor in a class" comment.
0/1
e) What is AWT?
CA
23
-82
f) What is use of Adapter class.
9.8
g) List the types of checked Exception.
tic
.21
sta
h) Differentiate between scanner & Buffer reader class.
49
:25
2.1
i) What is use of tostring ( ) method.
:26
11
20
j) List any two event class.
13
02
24
01
Q2) Attempt any Four of the following (out of Five) : [4 × 2 = 8]
/20
a) Differentiate between object and reference variable.
9.8 AP
/11
b) Give any two methods of character wrapper class.
0
CA
23
c) What is use of length property, Give its Syntax.
d) What is use of JFile chooser class. Give its Syntax.
.21
e) What is Polymorphism? How to implement it at runtime.
49
2.1
P.T.O.
20
Q3) Attempt any Two of the following (out of Three) : [2 × 4 = 8]
82
a) Create an abstract class shape with abstract method area ( ). Inherit abstract
ic-
class shape into circle class. Write a Java program to calculate area of
t
sta
circle and to display it. (Use Final Keyword)
5
b) Design the following screen by using Swing.
6:2
1
3:2
1/2 21
Employee Info. – ×
41
ENo 0/1 10
02
0
EName
9.8 AP
Salary
49 CA
23
82
Display Clear
ic-
.21
tat
Write a Java program to accept details of employee and display it on
5s
console by clicking on Display button. Clear button should clear all the
2.1
6:2
controls.
11
20
c)
3:2
Define user-define exception Nameval. Write a Java program to accept
02
Name from user if it is invalid then trow user define Exception "Name is
41
Invalid" otherwise convert it into the uppercase and display it.
02
01
1/2
AP
0/1
Q4) Attempt any Two of the following (out of Three) : [2 × 4 = 8]
CA
23
a) Explain the uses of 'Super' keyword with example.
-82
9.8
b) Write a Java program to accept a string from user, reverse the case of all
tic
.21
the Characters and replace all the digits by '*' in target string.
sta
49
c) Write a Java program to accept n numbers from user and store only
:25
2.1
prime numbers into array and display that array.
:26
11
20
13
02
Q5) Attempt any One of the following (out of Two) : [1 × 3 = 3]
24
01
/20
a) Differentiate between static variable and Instance variable.
9.8 AP
/11
b) Write a Java program to display the contents of file in reverse order.
0
CA
23
.21
49
2.1
[6328] - 55 2
20