0% found this document useful (0 votes)
3 views

java1

This document outlines the exam structure and instructions for a Java Programming II course, including question types and marks distribution. It consists of multiple-choice questions, short answer questions, and programming tasks related to Java concepts such as AWT, applets, event handling, and JDBC. Candidates are instructed to follow specific guidelines during the examination, including the use of black ink for diagrams and the requirement that all questions are compulsory.

Uploaded by

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

java1

This document outlines the exam structure and instructions for a Java Programming II course, including question types and marks distribution. It consists of multiple-choice questions, short answer questions, and programming tasks related to Java concepts such as AWT, applets, event handling, and JDBC. Candidates are instructed to follow specific guidelines during the examination, including the use of black ink for diagrams and the requirement that all questions are compulsory.

Uploaded by

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

fRf - 101/102

B) Java Programming - II (362407)


Time: Two Hours Max. Marks: 60'

Instructions to Candidates:
1. Do not write anything on question paper except Seat No.
2. Graph or diagram should be drawn with the black ink pen being used
for writing paper or black HB pencil.
3. Students should note, no supplement will be provided.
4. All questions are compulsory.
5. Figure to the right indicate full marks.
1. A) Attempt any six. 6
a) Which package is used for drawing graphical 20 shapes in Java.
- i) java. awt. geom ii) java. geom
iii) java. awt. Geom iv) All of these

b) Which method can be used to place a component at a specific


location and with specific height and width.
i) setLocation() ii) setSize()
iii) setBounds() iv) setSizeAndLocation()
c)" Which of these methods are used to register a mouse motion
listener.
i) addMouse() ii) addMouseListener()
iii) addMouseMotionListener() iv) event MouseMotionListener( )
d) Which of these class. is super class of all the events.
i) EventObject ii) EventClass
iii) . ActionEvent iv) ItemEvent
e) Which method can set or change the text in a label.
i) setText() ii) getText()
iii) Both a & b iv) None of these
f) Applet are designed from a class Applet, which is available in one of
the following package.
i) awl ii) lang
iii) applet' iv) gui
.g) The life cycle of a servlet is managed by ------------.
i) The supporting protocol ii) Servlet context
iii) Servlet container iv) Servlet
h) The --------------- interface is used to handled the menu events.
i) ContainerListener ii) ActionListener
iii) FocusListener ivY WindowLislener

fRf. 101/102 3 P.T.O

., A ~,...:,'
~-101/102

B) Attempt any six. 6


a) What is frame?
b) Enlist low level event classes.
c) What is applet?
d) What is event source?
e) State the purpose of Radio button.
f) What is pop-up menu?
g) What is JSP?
h) What is the vector class?
2. Attempt any six. 12
a) Explain drawString( ) method.
b) What is AWT?
c) Enlist layout managers for panel.
d) Enlist Adapter classes.
e) How TextField component differ from TextArea component.
f) What do you mean by modal and modeless dialog box.
g) What is collection? Enlist any two collection framework interfaces in
Java.
h) What is Java beans?
i) Write syntax of drawlmage( ) method.
3. Attempt any four. 12
a) What are the steps to convert application to applet.
d)" Discuss the paintComponent( ) method.
c) Explain border layout management.
d) Explain the methods that are used to select menu item by keyboard
mnemonics and to attach an accelerator key to menu item.
e) Explain any three methods of JComboBox component.
f) Write a short note on "JDBC".
4. Attempt any three. 12
a) Explain Rectangle2D and Ellipse2D class.
b) . Discuss how event handling in AWT works.
c) Explain applet life cycle in Java.
d) Explain the following components (i) Label (ii) Checkbox
e) Write a program to demonstrate password field.
5. Attempt any two. 12
a) Write a java program to demonstrate keyboard events.
b) Discuss how to build menu in Java with suitable example.
c) Explain the following.
i) Servlet life cycle. ii) Applet tag and its attributes.
**********

~ - 101 /102 4 118/1365

You might also like