K. K. WAGH POLYTECHNIC, NASHIK – 3 Department of Information Technology & Computer Technology MSBTE Class Test-II, October - 2008 Semester Subject Duration
: - Fifth Master: ‘C’ : - Java Programming (JPR) : - 1 Hour
=
=
=
=
=
=
=
Course : - IF / CM Subject Code : - 9113 Max. Marks : - 20
=
=
=
=
=
=
Instructions to candidate:1) All questions are compulsory. 2) Illustrate your answers with neat sketches/flowcharts wherever necessary. 3) Use of Non-programmable Electronics Calculator is permissible. 4) Figures to the right indicate full marks of respective questions. 5) Assume suitable additional data, if necessary.
Q.1 Attempt any Two.
(2 × 4)
08
a) List methods of Thread class along with their application. b) Display a pentagon on the applet filled with green color. c) What are the drawbacks of using the byte stream classes?
Q.2 Attempt any Two.
(2 × 6)
a) Describe the life cycle of the thread. b) How to pass parameters to the applet? Illustrate with example c) A file contains 100 different characters. Use random access file to print the alternate characters of that file.
12