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

Assign 5

The document contains two assignments related to Java programming. Assignment A contains 9 questions related to Java applets and graphics topics like drawing shapes. Assignment B contains similar questions on applets and graphics with additional questions on Font class methods.
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)
14 views2 pages

Assign 5

The document contains two assignments related to Java programming. Assignment A contains 9 questions related to Java applets and graphics topics like drawing shapes. Assignment B contains similar questions on applets and graphics with additional questions on Font class methods.
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

JAYAWANT SHIKSHAN PRASARAK MANDAL’s

Bhivrabai Sawant Polytechnic


(Approved by AICTE, New Delhi, Govt. of Maharashtra, Affiliated to MSBTE Mumbai)
Gat No. 720 (1&2), Wagholi, Pune-Nagar Road, Pune-412207)
Phone: 020 – 65335100 Tele fax: - + 91-020-65335100
E-mail: [email protected] Website: www.jspm.edu.in

Assignment No:-05

Course: - Java Programming A


Sr. Assign Que Assignment Questions Relevance
No. ment stion to Course
No. No. Outcome
1 Assignm 1 Write method to set font of a text and describe its parameters.
ent 05
2 Explain <PARAM> Tag of applet with suitable example.

3 Write syntax and example of following Graphics class methods :


1) drawLine ( ) 2) drawPolygon ( ) 3) drawArc()

4 State syntax and explain it with parameters for :


a) drawRect ( ) ii) drawOval ( )
CO504.5
5 List any four Java API packages.
6 Write a program to design an applet to display three circles filled with
three different colors on screen.

7 Design an applet which displays three circles one below the other and
fill them red, green and yellow color respectively.

8 Differentiate applet and application with any four points.


9 Describe applet life cycle with suitable diagram.
JAYAWANT SHIKSHAN PRASARAK MANDAL’s

Bhivrabai Sawant Polytechnic


(Approved by AICTE, New Delhi, Govt. of Maharashtra, Affiliated to MSBTE Mumbai)
Gat No. 720 (1&2), Wagholi, Pune-Nagar Road, Pune-412207)
Phone: 020 – 65335100 Tele fax: - + 91-020-65335100
E-mail: [email protected] Website: www.jspm.edu.in

Assignment No:-05

Course: - Java Programming B


Sr. Assign Que Assignment Questions Relevance
No. ment stion to Course
No. No. Outcome
1 Assignm 1 Describe applet life cycle with suitable diagram.
ent 05 2 Explain <applet> tag with its major attributes only. State purpose of
getAvailableFontFamilyName ( ) method of graphics environment
class.
3 Differentiate between applet and application and also write a simple
applet which display message ‘Welcome to Java’.
4 Explain <PARAM> Tag of applet with suitable example.
5 Write the syntax and example for each of following graphics methods :
1) drawPolygon ( ) 2) drawRect ( ) 3) drawOval ( )
4) fillOval ( )
6 State the use of Font class. Write syntax to create an object of Font class. CO504.5
Describe any 3 methods of Font class with their syntax and example of
each
7 Describe the use of following methods:
(i) getFont ( )
(ii) drawLine ( )
(iii) getFamily ( )
8 State syntax and explain it with parameters for :
a) drawRect ( ) ii) drawOval ( )

9 Write a program to design an applet to display three circles filled with


three different colors on screen.

You might also like