Exam 11: GUI Applications–Part 1
Exam 1: Introduction to Computers and Java40 Questions
Exam 2: Java Fundamentals40 Questions
Exam 3: A First Look at Classes and Objects40 Questions
Exam 4: Decision Structures40 Questions
Exam 5: Loops and Files40 Questions
Exam 6: A Second Look at Classes and Objects40 Questions
Exam 7: Arrays and the ArrayList Class40 Questions
Exam 8: Text Processing and Wrapper Classes40 Questions
Exam 9: Inheritance40 Questions
Exam 10: Exceptions and Advanced File I/O40 Questions
Exam 11: GUI Applications–Part 140 Questions
Exam 12: GUI Applications–Part 240 Questions
Exam 13: Applets and More40 Questions
Exam 14: Creating GUI Applications with JavaFX40 Questions
Exam 15: Recursion20 Questions
Exam 16: Databases40 Questions
Select questions type
Very few of the Swing components are coupled with peers, so they are called ________ components.
Free
(Multiple Choice)
4.8/5
(43)
Correct Answer:
D
To end an application, you pass this as the argument to the JFrame class's setDefaultCloseOperation method.
Free
(Multiple Choice)
4.9/5
(32)
Correct Answer:
D
This method of the JOptionPane class is used to display a confirm dialog box.
Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
A
A(n) ________ is an action that takes place within a program, such as the clicking of a button.
(Multiple Choice)
4.8/5
(37)
In GUI terminology, a container that can be displayed as a window is known as a
(Multiple Choice)
4.7/5
(30)
If panel references a JPanel object, which of the following statements adds the GridLayout to it?
(Multiple Choice)
4.8/5
(36)
When using the BorderLayout manager, how many components can each region hold?
(Multiple Choice)
4.8/5
(39)
The signature of the actionPerformed method in the ActionListener interface specifies that it accepts one argument, which is an ActionEvent object.
(True/False)
4.8/5
(41)
This is a basic window that has a border around it, a title bar, and a set of buttons for minimizing, maximizing, and closing the window.
(Multiple Choice)
4.8/5
(39)
What will be displayed when the following statement is executed?
JOptionPane.showMessageDialog(null, "Java is fun!");
(Multiple Choice)
4.8/5
(25)
Because the System.out.println method sends its output to the console, diagnostic messages can be displayed without interfering with the application's GUI windows.
(True/False)
5.0/5
(40)
________, which may appear alone or in groups, allow the user to make yes/no or on/off selections.
(Multiple Choice)
4.8/5
(34)
A GUI program automatically stops executing when the end of the main method is reached.
(True/False)
4.9/5
(34)
A JFrame object's content pane is automatically given a ________ manager.
(Multiple Choice)
4.9/5
(39)
A mutually exclusive relationship is created between radio buttons only when they are added to a ButtonGroup object.
(True/False)
4.7/5
(28)
The process of connecting an event listener object to a component is called ________ the event listener.
(Multiple Choice)
4.7/5
(36)
It is possible to write the main method directly into a GUI class.
(True/False)
4.8/5
(36)
Showing 1 - 20 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)