Professional Documents
Culture Documents
AJP QB For PT1
AJP QB For PT1
4 Which are passive controls that do not support any interaction with the user?
19 Which is the correct constructor of GridLayout.
20 Public class MenuBar extends ____________.
Which class is used to represent a single line
21 textbox with password character facility?
22 To set the title to the Frame window ________ method is used.
23 The default layout of Applet is _______.
24 Which of the following package is used for Graphical User Interface?
25 Which method is used to set password character for a TextField?
26 Which component of AWT provides compact, multichoice, scrolling component?
___________ positions are the components into 5 regions east, west, south, north,
27 center.
28 What are the types of DialogBox?
29 What is default layout for Dialog?
30 Which method is used to check the status of checkbox?
31 ___________method returns currently selected item in choice.
32 Which of the following method is used to set a TextComponent to read ‐only mode?
Frame is a standard window, which is
33 of Window class from AWT hierarchy?
__________________positions are the components into 5 regions east, west,
34 south, north, center.
39 What does the following line of code do? TextField tf = new TextField(10);
66 What happens if setSize is not called on a JFrane (assume pack is not called)?
What code adds this JButton to this JPanel?
JPanel panel = new JPanel();
67 JButton button = new JButton();
90 ActionEvent is applied on
91 Which of these events is generated when a button is pressed?
92 Which of these class is super class of all the events?
Labels, push buttons Checkboxes, choice list Scroll bars, text fields, text area
graphical user interactive both (a) and (b)
Modal and Modeless DialogBo
Modal DialogBox x Modam
FlowLayout GridLayout CardLayout
getStatus( ) getState( ) isChecked( )
getSelectedItem( ) getSelectedElement( ) getSelectedIndex( )
Editable( ) nonEditable( ) setEchoChar( )
Base class /
Derived class / Subclass Super class Root class
tell which region to put the JButton tells what text will appear on
in. tells the color of the JButton. JButton.
addKeyListener()
KeyListener() addKistener()
Checkbox c Chapter 1
All of these d
Chapter 1
none of the above c Chapter 1
Appletshow a Chapter 1
.html c Chapter 1
Final() c Chapter 1
Javac d Chapter 1
Menu c Chapter 1
java.awt b Chapter 1
MenuBar a Chapter 1
Applet b Chapter 1
List b Chapter 1
CheckboxMenuItem a Chapter 1
java.awt b Chapter 1
getCount( ) c Chapter 1
Checkbox a Chapter 1
None of the above a Chapter 1
BorderLayout c Chapter 1
java.io b Chapter 1
setEchoCharacter( ) b Chapter 1
TextArea a Chapter 1
FlowLayout
b Chapter 1
None of the above b Chapter 1
BorderLayout a Chapter 1
getChecked( ) b Chapter 1
getItem( ) a Chapter 1
setEditable( ) d Chapter 1
FlowLayout b Chapter 1
Container – Component –
Panel c Chapter 1
TextArea a Chapter 1
Panel c Chapter 1
None of these c Chapter 1
All of the above c Chapter 2
a
None of the above Chapter 2
c
setRollOverIcon( ) Chapter 2
b
ImageIcon Chapter 2
MouseEvents a Chapter 2
a
panel.add(JButton); Chapter 2
c
None of the above Chapter 2
c
AbstractButton Chapter 2
An event is a class used for
defining object, to create a
events Chapter 2
JCheckBox c Chapter 2
javax.swing d Chapter 2
Swing d Chapter 2
Platform Oriented b Chapter 2
MutableTreeNode b Chapter 2
Method c Chapter 2
JTable object displays data c
in Tree form Chapter 2
eventKeyboardListener() c Chapter 2
eventMouseMotionListener
() c Chapter 2
GUI a Chapter 2
All of the above d Chapter 2