NEW
Font size
Worksheets20UCT412 - CORE VIII: ADVANCED JAVA PROGRAMMING Quiz Event
Total questions: 20
Worksheet time: 14mins
AWT stands for __________.
Applet Windowing Toolkit
Abstract Windowing Toolkit
Absolute Windowing Toolkit
None of the above
Swing components are _________.
Heavy-weight components
Light-weight components
Window
Container
Swing components are platform _________.
Dependent
Independent
Neither dependent nor independent
Both dependent and independent
Abstract superclass for Swing buttons are
Component
JComponent
AbstractButton
none of the above
The Swing related classes are contained in _______ package.
java.Swing
javax.swing
java.Swings
None of the above
JApplet supports __________
panes
object
code
None of the above
Which class provides many methods for graphics programming?
The ________ method of container can be used to add a component to a ContentPane.
add()
adds()
label()
None of the above
In Swing , icons are encapsulated by the _______ class.
ImageIcon
Image
Icon
None of the above
Swing labels are instances of the _________ class.
java.awt
Label
JLabel
None of the above
The Swing textField is encapsulated by the _________ class.
JTextComponent
TextComponent
JtextArea
None of the above
The _______ class provides the functionality of a push button.
JButton
JCheckbox
JMenuItem
All of these
Which is the container that doesn't contain title bar and MenuBars.
Window
Frame
Panel
Container
By which method you can set or change the text in a Label?
setText()
getText()
Both A & B
None of the above
A _______ is a component that displays rows and columns of data.
List
table
Labels
Checkbox
A _____ object generates events when a node is expanded or collapsed.
Labels
JTree
List
Checkbox
What is the name of the Swing class that is used for frames?
Window
Frame
JFrame
SwingFrame
Which of the following package contains servlet classes?
javax.servlet
javax.servlet.http
Both of the above.
None of the above.
Which of the following is the correct order of servlet life cycle phase methods?
init, service, destroy
initialize, service, destroy
init, execute, destroy
init, service, delete
What is javax.servlet.Servlet?
interface
abstract class
concreate class
None of the above
