A) The value of the first selected item
B) The index of the first selected item
C) An array of objects containing the items selected
D) An array containing the indices of all the selected items in the list
Correct Answer
verified
Multiple Choice
A) The index of the item that the user replaced
B) The index of the item the user entered
C) -1
D) 0, since the item is not in the list
Correct Answer
verified
Multiple Choice
A) The value that the user replaced
B) The index of the item the user entered
C) The value that appears in the text field, even if it is not in the combo box's list
D) Nothing, since the item is not in the list
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) BMP
B) JPEG
C) GIF
D) PNG
Correct Answer
verified
Multiple Choice
A) The text field x will have the value "Tiny Tim" and be read-only.
B) The text field x will have the value "Tiny Tim" and the user will be able to change its value.
C) The text field x will have the value true.
D) The text field x have the value "trueTiny Tim"
Correct Answer
verified
Multiple Choice
A) The JFrame that encloses the window will resize itself to accommodate the SunnyFace image.
B) imagePanel will resize itself to accommodate the SunnyFace image.
C) The SunnyFace image will resize itself to fit on imageLabel.
D) The SunnyFace image will resize itself to fit on imagePanel.
Correct Answer
verified
Multiple Choice
A) a guide provided by the Help menu as to which tool to use for various programming techniques
B) another name for the Tool Bar
C) used to make programming easier
D) text that is displayed in a small box when the user holds the mouse cursor over a component
Correct Answer
verified
Multiple Choice
A) you pass an array of objects to the constructor
B) the list has a default selection mode of Single Selection Mode
C) the values in the list are automatically sorted
D) you must indicate the maximum number of list items the user may select at any one time
Correct Answer
verified
Multiple Choice
A) A label with the text "It is a beautiful day." to the left of the SunnyFace image
B) A label with the text "It is a beautiful day." to the right of the SunnyFace image
C) A label with the text "It is a beautiful day." below the SunnyFace image
D) A label with the text "It is a beautiful day." above the SunnyFace image
Correct Answer
verified
Multiple Choice
A) It creates a text area with 25 columns and 15 rows that will initially display the text stored in the String object message.
B) It creates a text area with 25 columns and 15 rows that will initially display the text stored in the text area textField.
C) It creates a text area with 25 rows and 15 columns that will initially display the text stored in the String object message.
D) It creates a text area with 25 rows and 15 columns that will initially display the text "message".
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) action listener event
B) action performed event
C) list selection listener event
D) list selection event
Correct Answer
verified
Multiple Choice
A) It will create a JScrollPane object for the JTextArea object referenced by message and display a horizontal scroll bar on the text area.
B) It will create a JScrollPane object for the JTextArea object referenced by message and display a vertical scroll bar on the text area.
C) It will create a JScrollPane object for the JTextArea object referenced by message and display both vertical and horizontal scroll bars on the text area.
D) It will create a JScrollPane object for the JTextArea object referenced by message and display no scroll bars on the text area.
Correct Answer
verified
Multiple Choice
A) sets the textList component to single selection mode
B) sets the textList component to ListSelectModel
C) sets the textList component to single interval selection mode
D) sets the value of textList to SINGLE_INTERVAL_SELECTION
Correct Answer
verified
Multiple Choice
A) Container
B) Region
C) Frame
D) Dimension
Correct Answer
verified
Multiple Choice
A) Hue picker
B) Color chooser
C) Paint dialog box
D) Palette selector
Correct Answer
verified
Multiple Choice
A) check box menu item
B) combo box menu item
C) radio button menu item
D) menu item
Correct Answer
verified
Multiple Choice
A) menu item
B) separator bar
C) menu bar
D) It may have all the above.
Correct Answer
verified
Multiple Choice
A) the pack method
B) the resize method
C) the grow method
D) the enlarge method
Correct Answer
verified
Showing 21 - 40 of 58
Related Exams