Exam 11: Advanced User Interfaces
Exam 1: Introduction96 Questions
Exam 2: Fundamental Data Types103 Questions
Exam 3: Decisionseasy99 Questions
Exam 4: Loops100 Questions
Exam 5: Methods94 Questions
Exam 6: Arrays and Arraylists100 Questions
Exam 7: Inputoutput and Exception Handling100 Questions
Exam 8: Objects and Classes101 Questions
Exam 9: Inheritance and Interfaces99 Questions
Exam 10: Graphical User Interfaces54 Questions
Exam 11: Advanced User Interfaces91 Questions
Exam 12: Object-Oriented Design100 Questions
Exam 13: Recursion100 Questions
Exam 14: Sorting and Searching99 Questions
Exam 15: The Java Collections Framework100 Questions
Exam 16: Basic Data Structures94 Questions
Exam 17: Tree Structures100 Questions
Exam 18: Generic Classes78 Questions
Exam 19: Streams and Binary Inputoutput82 Questions
Exam 20: Multithreading82 Questions
Exam 21: Internet Networking74 Questions
Exam 22: Relational Databases75 Questions
Exam 23: XML74 Questions
Exam 24: Web Applications74 Questions
Select questions type
When you use a timer, you need to define a class that implements the ____ interface.
(Multiple Choice)
4.8/5
(40)
How do the lifetimes of the three objects menuLabel, mi, and the anonymous object new MyMenuListener()compare?
Public JMenuItem makeMenuItem(final String menuLabel)
{
JMenuItem mi = new JMenuItem(menuLabel);
Class MyMenuListener implements ActionListener
{
Public void actionPerformed(ActionEvent
(Multiple Choice)
5.0/5
(33)
Which layout manager allows you to add components to it by invoking the container's add method with the component as the only argument to add.
I FlowLayout
II BorderLayout
III GridLayout
(Multiple Choice)
4.7/5
(33)
The ChangeEvent class defines no methods. What makes it possible to call the getSource method on a ChangeEvent object?
(Multiple Choice)
4.8/5
(38)
The ____ class in the javax.swing package generates a sequence of events, spaced apart at even time intervals.
(Multiple Choice)
4.9/5
(33)
Based on the statement below, which of the following adds a title to the border?
JPanel panel = new JPanel();
(Multiple Choice)
4.7/5
(29)
Which of the following GUI objects generate(s) action events?
I JComboBox
II JRadioButton
III JButton
(Multiple Choice)
4.9/5
(37)
Which method can a program use to set the selected choice in a JComboBox?
(Multiple Choice)
4.8/5
(43)
When using a combo box, the _______ displays the name of the current selection.
(Multiple Choice)
4.8/5
(42)
Which of the following methods returns the object that was selected in the JComboBox?
(Multiple Choice)
4.7/5
(46)
Which layout manager uses a grid so that each component will always be placed into an area of the same size?
I GridBagLayout
II BorderLayout
III GridLayout
(Multiple Choice)
4.7/5
(38)
Use the ____ method to add a mouse listener to a component.
(Multiple Choice)
4.8/5
(46)
What type does the method getSelectedItem in the JComboBox class return?
(Multiple Choice)
4.9/5
(32)
Which of the following classes has a Boolean state that can be set or unset through the GUI?
(Multiple Choice)
4.7/5
(31)
In Java, each container has its own ____________________, which determines how the components are laid out.
(Multiple Choice)
4.8/5
(39)
Which code will create a JSlider with a range from 0 to 100, with an initial value of 50?
I new JSlider()
II new JSlider(0, 100, 50)
III new JSlider(50, 0, 100)
(Multiple Choice)
4.9/5
(34)
Showing 21 - 40 of 91
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)