0% found this document useful (0 votes)
32 views2 pages

JPR Prelim 2

This document contains a practice exam for a Java programming class. It has two questions - the first asks students to attempt five of several short questions covering Java topics, and the second asks students to attempt one of several longer programming problems.

Uploaded by

Tejal Sonawane
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views2 pages

JPR Prelim 2

This document contains a practice exam for a Java programming class. It has two questions - the first asks students to attempt five of several short questions covering Java topics, and the second asks students to attempt one of several longer programming problems.

Uploaded by

Tejal Sonawane
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

GURU GOBIND SINGH POLYTECHNIC, NASHIK

PRELIM EXAM – I
Java Programming (22412)
Class: SYCO (A, B&C)

Branch/Sem: CO4I Date: 18/03/24


Marks: 30 Duration: 1.30Hr.

Instructions: 1) All questions are compulsory.


2) Illustrate your answers with neat sketches wherever necessary.
3) Figures to the right indicate full marks.
4) Assume suitable data if necessary.

Q1.Attempt any FIVE of the following: (10M)


a) Differentiate between class and Interface.(Any two point) CO-c
b) Define package.Write advantages of creating it. CO-c
c) Define Error.Give types of it with example. CO-d
d) Define Exception.State predefined Exceptions in Java. CO-d
e) Write complete syntax of <Applet> tag. CO-e
e) Define stream. List its types. CO-f
f) Give classification of Java Stream Classes. CO-f
Q2. Attempt any of the FIVE following: (20M)
a) Describe Thread Life Cycle with neat diagram. CO-d
b) Define priority of thread. How to retrieve and change priority of thread? CO-d
c) Write the syntax and example for each of following graphics methods : CO-e
1) drawPoly ( ) 2) drawRect ( )
3) drawOval ( ) 4) fillOval ( )

d) Design an applet to change font of text on applet window. CO-e


e) WAP to copy contents from one file to another. CO-f
f) Write a program to create two threads ; one to print numbers in original order and
other to reverse order from 1 to 50.
g) Describe applet life cycle with suitable diagram. Co-e
GURU GOBIND SINGH POLYTECHNIC, NASHIK
PRELIM EXAM – I
Java Programming (22412)
Class: SYCO (A, B&C)

Branch/Sem: CO4I Date: 18/03/24


Marks: 30 Duration: 1.30Hr.

Instructions: 1) All questions are compulsory.


2) Illustrate your answers with neat sketches wherever necessary.
3) Figures to the right indicate full marks.
4) Assume suitable data if necessary.

Q1.Attempt any FIVE of the following: (10M)


a) Differentiate between class and Interface.(Any two point) CO-c
b) Define package.Write advantages of creating it. CO-c
c) Define Error.Give types of it with example. CO-d
d) Define Exception.State predefined Exceptions in Java. CO-d
e) Write complete syntax of <Applet> tag. CO-e
e) Define stream. List its types. CO-f
f) Give classification of Java Stream Classes. CO-f
Q2. Attempt any of the FIVE following: (20M)
a) Describe Thread Life Cycle with neat diagram. CO-d
b) Define priority of thread. How to retrieve and change priority of thread? CO-d
c) Write the syntax and example for each of following graphics methods : CO-e
1) drawPoly ( ) 2) drawRect ( )
3) drawOval ( ) 4) fillOval ( )

d) Design an applet to change font of text on applet window. CO-e


e) WAP to copy contents from one file to another. CO-f
f) Write a program to create two threads ; one to print numbers in original order and
other to reverse order from 1 to 50.
g) Describe applet life cycle with suitable diagram. Co-e

You might also like