Total No. of Questions : 5] SEAT No.
38
P6394 [Total No. of Pages : 2
[6155]-55
ic-
tat
[Link].
9s
COMPUTER SCIENCE
1:5
30 1
1
CS - 355 : Object Oriented Programming Using Java - I
9:4
2/2 02
(Revised 2019) (CBCS) (Semester - V) (Paper - V)
1
02
8 1 P0
A
Time : 2 Hours] [Max. Marks : 35
6/1
8.7 CA
Instructions to the candidates:
38
1) All questions are compulsory.
7.3
ic-
2) Figures to the right indicate full marks.
tat
9s
.24
1:5
Q1) Attempt any EIGHT of the following: [8×1=8]
49
11
9:4
a) A final keyword can not be overriden state true/false and justify.
02
30
b) Give the types of access specifiers.
01
02
c) Differentiate between Scanner and Buffered Reader class.
2/2
AP
d) What is Layout Manager?
6/1
CA
e) Write the purpose of this keyword.
81
38
f) List any two types of checked Exception.
7.3
-
g) What is listener ? State any two Listeners. tic
8.7
sta
h) What are command line arguments?
.24
:59
49
i) Differentiate between throw and throws keyword.
11
:41
j) Write the purpose of jab.
02
09
23
1
8 1 P0
/20
Q2) Attempt any FOUR of the following: [4×2=8]
12
A
a) What is constructor? List its types.
6/
CA
b) Differentiate between class variables and instance variables.
c) Write the purpose of abstract keyword.
7.3
8.7
d) Which class and interface are at topmost position in Exception hierarchy.
.24
e) Give the syntax of J File Chooser class.
49
P.T.O.
Q3) Attempt any TWO of the following: [2×4=8]
38
a) Write a java program to delete the files having extension. txt. (Use
ic-
command line arguments)
tat
b) Write a java program using swing to accept the details of project (PID, P
9s
Name, duration) from user and display it by clicking on a button.
1:5
30 1
c) Define an abstract class Shape with abstract method area ( ). Write a java
1
9:4
program to calculate area of Triangle.
2/2 02
1
02
8 1 P0
Q4) Attempt any TWO of the following: [2×4=8]
A
a) Write a java program to change the text color of Lable to Red by clicking
6/1
8.7 CA
on a button.
38
b) What is inheritance? Explain multilevel inheritance with an example.
7.3
ic-
c) How to create and access package in a program? Explain with an example.
tat
9s
.24
1:5
49
11
Q5) Attempt any ONE of the following: [1×3=3]
9:4
02
a) Explain the structure of java program.
30
b) Explain different types of Dialog Box with an example.
01
02
2/2
AP
6/1
CA
81
38
7.3
-
tic
8.7
sta
.24
:59
49
11
:41
02
09
23
1
8 1 P0
/20
12
A
6/
CA
7.3
8.7
.24
49
[6155]-55 2
Total No. of Questions : 5] SEAT No. :
82
PB1887 [Total No. of Pages : 2
ic-
[6237]-505
t
sta
T.Y. [Link].
COMPUTER SCIENCE
7
9:4
CS-355 : Object Oriented Programming Using Java - I
1
3:2
4/2 21
(Revised 2019 Pattern) (CBCS) (Semester - V) (Paper - V)
41
Time : 2 Hours] 7/0 10 [Max. Marks : 35
02
Instructions to the candidates:
0
9.8 AP
1) All questions are compulsory.
2) Figures to the right indicate full marks.
49 CA
22
82
ic-
Q1) Attempt any EIGHT of the following. [8×1=8]
.21
tat
7s
a) What is the purpose of Javap?
2.1
9:4
b) List any two datatypes in java.
11
20
3:2
c) Write the purpose of this keyword.
02
41
d) What is the use of tostring ( )?
02
01
e) Write the use of abstract keyword.
4/2
AP
f) Define interface.
7/0
g) List any two Reader Classes.
CA
22
-82
h) How to check end of file?
9.8
i) What is panel? tic
.21
sta
49
j) Give the names of any two Layout Managers.
:47
2.1
:29
11
20
Q2) Attempt any FOUR of the following. [4×2=8]
13
02
a) Differentiate between method overloading and method overriding.
24
01
/20
b) State any four access specifiers in Java.
9.8 AP
/04
c) What is Marker interface?
7
d) What is Exception? List its any two types.
CA
22
e) What is Swing? How it is differ from AWT?
.21
49
2.1
20
[6237]-505 1 P.T.O.
Q3) Attempt any TWO of the following. [2×4=8]
82
a) Write a java program to display contents of file in reverse order.
tic-
sta
b) Write a java program using swing to accept student details (rno, name,
percentage) and display it by clicking on a button.
7
9:4
c) Define abstract class shape with abstract method area ( ). Write a java
1
3:2
4/2 21
program to calculate area of rectangle.
41
7/0 10
02
0
Q4) Attempt any TWO of the following: [2×4=8]
9.8 AP
a) Write a java program to accept employee name from user, if it is not
49 CA
22
valid then throw user defined exception “InvalidName” otherwise display
82
a name.
ic-
.21
tat
b) What is Layout Manager? Explain it with example.
7s
c) Explain the uses of final keyword with example.
2.1
9:4
11
20
3:2
02
41
Q5) Attempt any ONE of the following: [1×3=3]
02
01
a) Explain the features of Java.
4/2
AP
b) Explain event delegation model in Java.
7/0
CA
22
-82
9.8
tic
.21
sta
49
:47
2.1
:29
11
20
13
02
24
01
/20
9.8 AP
7 /04
CA
22
.21
49
2.1
20
[6237]-505 2
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
Total No. of Questions : 5] SEAT No. :
82
PD-1575
ic-
[Total No. of Pages : 2
t
sta
[6468]-55
7
T.Y. B .Sc. (Computer Science)
4:0
1
CS - 355 : Object Oriented Programming Using Java - I
3:2
4/2 21
51
(2019 Pattern) (Semester - V)
6/0 10
02
0
Time : 2 Hours] [Max. Marks : 35
9.8 AP
Instructions to the candidates :
1) All questions are compulsory.
49 CA
21
82
2) Figures to the right indicate full marks.
ic-
.21
tat
Q1) Attempt any Eight of the following (out of Ten) : [8 × 1 = 8]
7s
a) What is the purpose of the final keyword when applied to variables?
2.1
4:0
b) What is the purpose of the javap tool in Java?
11
20
3:2
c) How is a 1D array declared in Java?
02
51
d) What is the Object class in Java?
02
01
e) What is a wrapper class in Java?
4/2
AP
f) What is the role of the extends keyword in Java?
6/0
g) What is the purpose of BufferedResder Class?
CA
21
h) Define Exception
-82
9.8
i) Name the package used for event handling in java.
tic
.21
j) Name any two GUI components used in Swing.
sta
49
:07
2.1
Q2) Attempt any FOUR of the following (out of Five) : [4 × 2 = 8]
:24
11
20
a) What are constructors in Java? Explain constructor overloading and how
13
02
the this keyword is used in constructors.
25
01
b) Write a Java program to demonstrate inheritance and the use of the super
/20
keyword.
9.8 AP
/04
c) Explain the difference between FileReader and FileWriter in Java.
6
CA
21
d) What are the different types of layouts in Swing? Discuss any two of
them.
e) Explain command line arguments with suitable example.
.21
49
2.1
P.T.O.
20
Q3) Attempt any TWO of the following (out of Three) : [2 × 4 = 8]
82
a) Explain how event handling works in Swing with an example using
ic-
ActionListener
t
sta
b) Write a Java program to define a class ‘Doctor’ with data members
7
4:0
doctorId,doctorName and doctorSpecialization. Accept the data for ‘n’
1
objects using array of objects and display it.
3:2
4/2 21
51
c) Design a screen in Java using Swing to handle mouse events such as
6/0 10
MOUSE_MOVED and MOUSE_CLICK and display the x and y
02
0
co-ordinate of mouse click in a textfield.
9.8 AP
49 CA
21
Q4) Attempt any TWO of the following (out of Three) : [2 × 4 = 8]
82
a) Write a Java program to print the contents form one file into another file
ic-
.21
in reverse order.
tat
7s
b) What is Interface? Explain with example code.
2.1
4:0
c) Write a Java program using Swing to create a simple graphical user interface
11
20
3:2
(GUI) with buttons, labels, and text fields.
02
51
02
01
Q5) Attempt any ONE of the following (out of Two) : [1 × 3 = 3]
4/2
AP
a) Explain the process of creating and accessing packages in Java. Write a
6/0
program to demonstrate package usage.
CA
21
b) Write a program that demonstrates the creation and handling of custom
-82
9.8
exceptions in Java.
tic
.21
sta
49
JJJ
:07
2.1
:24
11
20
13
02
25
01
/20
9.8 AP
6 /04
CA
21
.21
49
2.1
[6468]-55 2
20