Exam 19: Graphical User Interfaces
Exam 1: Introduction98 Questions
Exam 2: Using Objects76 Questions
Exam 3: Implementing Classes103 Questions
Exam 4: Fundamental Data Types125 Questions
Exam 5: Decisions120 Questions
Exam 6: Loops128 Questions
Exam 7: Arrays and Array Lists118 Questions
Exam 8: Designing Classes95 Questions
Exam 9: Inheritance101 Questions
Exam 10: Interfaces85 Questions
Exam 11: Inputoutput and Exception Handling109 Questions
Exam 12: Object-Oriented Design104 Questions
Exam 13: Recursion110 Questions
Exam 14: Sorting and Searching109 Questions
Exam 15: The Java Collections Framework110 Questions
Exam 16: Basic Data Structures104 Questions
Exam 17: Tree Structures110 Questions
Exam 18: Generic Classes75 Questions
Exam 19: Graphical User Interfaces76 Questions
Exam 20: Streams and Binary Inputoutput82 Questions
Exam 21: Multithreading82 Questions
Exam 22: Internet Networking74 Questions
Exam 23: Relational Databases75 Questions
Exam 24: XML74 Questions
Exam 25: Web Applications75 Questions
Select questions type
To create a _____ layout, you supply the number of rows and columns in the constructor, then add the components, row by row, left to right.
(Multiple Choice)
4.9/5
(42)
If one ChangeListener is listening for three different JSlider objects, how can we determine which of the three sliders caused the event when the code enters the stateChanged method?
(Multiple Choice)
4.8/5
(37)
Given four JRadioButton objects in a ButtonGroup, how many radio buttons can be selected at the same time?
(Multiple Choice)
4.8/5
(41)
What is the most time-effective way to build a GUI quickly and concentrate on coding the logic of the program?
(Multiple Choice)
4.8/5
(38)
Which layout manger would be best suited to create a simple navigation GUI with directional arrows for left, right, up, down and enter?
(Multiple Choice)
4.9/5
(43)
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.7/5
(32)
The ChangeEvent class defines no methods. What makes it possible to call the getSource method on a ChangeEvent object?
(Multiple Choice)
4.7/5
(37)
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.9/5
(29)
When using a combo box, the _______ displays the name of the current selection.
(Multiple Choice)
4.9/5
(43)
If you want to have a tabular arrangement of components, in which columns have different sizes or one component spans multiple columns, a ____ would be appropriate.
(Multiple Choice)
4.8/5
(43)
What is known for certain from this correct code excerpt? ActionListener openListener = new FileOpenListener();
JMenuItem fileOpen = new JMenuItem("Open File");
FileOpen.addActionListener(openListener);
(Multiple Choice)
4.9/5
(32)
In Java, each container has its own ____________________, which determines how the components are laid out.
(Multiple Choice)
4.8/5
(43)
The code below will not compile successfully unless the argument to the makeMenuItem method is final. Why not? public JMenuItem makeMenuItem(final String menuLabel)
{
JMenuItem mi = new JMenuItem(menuLabel);
Class MyMenuListener implements ActionListener
{
Public void actionPerformed(ActionEvent
(Multiple Choice)
4.8/5
(39)
Which of the following GUI objects generate(s) action events?
I JComboBox
II JRadioButton
III JButton
(Multiple Choice)
4.7/5
(41)
Showing 61 - 76 of 76
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)