Professional Documents
Culture Documents
Which of these methods can be used to know which key is pressed ? getModifiers()
1 A) getActionEvent() B) getActionKey() C) getModifier() D) getKey()
What layout is used to divide a frame into five areas: north, south, east, west,
and center?
3 BorderLayout
A) BorderLayout B) BoxLayout C) FlowLayout D) GridLayout
Arranges the components as a deck of cards such that only one component is
9 visible at a time CardLayout
A) CardLayout B) BorderLayout C) GridLayout D) GridBagLayout
removeAll()
13 All Component on Container can be removed by calling following method
Arranges the components as a deck of cards such that only one component is
14 CardLayout
visible at a time
15 Each menu is associated with a ___________list of menu items Drop-down
In Graphics class Which method is used to set the graphics current color to public abstract void
17
the specified color? setColor(Color c)
18
Which of the following component class cannot be add on applet Menu
What is the name of the Swing class that is used for frames?
20 JFrame
A) Window B) Frame C) JFrame D) Panel
Which of these packages contains all the classes and methods required for
22 event handling in Java? java.awt.event
A) java.awt B) java.event C) java.applet D) java.awt.event
Which of these class is super class of all the events?
23 A) EventObject B) EventClass C) ActionEvent D) temEvent EventObject
30 Which component is used to compile, debug and execute the java programs?
A) JRE B) JIT C) JDK D) JVM
JDK
31 Border Layout is divided into_________regions five
A) five B) one C) two D) three
32 Which of these events will be generated if we close an applet’s window? Window Event
A) ActionEvent B) Component Event
C) AdjustmentEvent D) Window Event
33 Plugable Look & Feel is the feature of Swing
CardLayout() // First
39 The CardLayout class defines the following constructors: Cardlayout(int hor, int ver)
//second