Exam 6: Graphical User Interface GUI and Object-Oriented Design OOD
Exam 1: An Overview of Computers and Programming Languages50 Questions
Exam 2: Basic Elements of Java50 Questions
Exam 3: Introduction to Objects and Input/output50 Questions
Exam 4: Control Structures I: Selection50 Questions
Exam 5: Control Structures II: Repetition50 Questions
Exam 6: Graphical User Interface GUI and Object-Oriented Design OOD50 Questions
Exam 7: User-Defined Methods50 Questions
Exam 8: User-Defined Classes50 Questions
Exam 9: Arrays46 Questions
Exam 10: Inheritance and Polymorphism50 Questions
Exam 11: Handling Exceptions and Events50 Questions
Exam 12: Advanced Guis and Graphics48 Questions
Exam 13: Recursion50 Questions
Exam 14: Applications of Arrays Searching and Sorting and Strings50 Questions
Select questions type
Given the declaration, Integer num; The statement num = 8; is known as autoboxing of int type.
Free
(True/False)
4.8/5
(32)
Correct Answer:
True
When you click a JButton, an event, known as an action event, is created.
Free
(True/False)
4.8/5
(36)
Correct Answer:
True
The class Container is included in the package java.awt.
Free
(True/False)
4.8/5
(43)
Correct Answer:
True
Which of the following is NOT a required attribute of a window?
(Multiple Choice)
4.8/5
(32)
If lengthTF is a JTextField and pane is a container, then the statement pane.add(lengthTF); adds the text field to the content pane of a window.
(True/False)
4.9/5
(32)
What is the name for Java classes that are provided so that values of primitive data types can be treated as objects?
(Multiple Choice)
4.7/5
(33)
Which of the following statements is NOT true about GUI programs?
(Multiple Choice)
4.9/5
(33)
To determine whether two reference variables of the Integer type point to the same Integer object, we can use either the method equals of the class Integer or the operator ==.
(True/False)
4.9/5
(34)
An interface is a class that contains only the method headings and each method heading is terminated with a semicolon.
(True/False)
4.9/5
(48)
To compare the values of two Integer objects for equality, we can use the method equals of the class Integer.
(True/False)
5.0/5
(45)
Which package will you most likely have to import in order to write a GUI program?
(Multiple Choice)
4.7/5
(28)
In Java, there is one way to make an application program create a window.
(True/False)
4.9/5
(45)
To create a window, which of the following classes has to be extended?
(Multiple Choice)
4.7/5
(41)
Which method is used to register a listener object to a button object?
(Multiple Choice)
4.8/5
(34)
Which of the following methods is NOT part of the class JFrame?
(Multiple Choice)
4.9/5
(38)
Which of the following is not a method of the class JTextField?
(Multiple Choice)
4.8/5
(33)
Which modifier is used to build classes on top of classes that are interfaces?
(Multiple Choice)
4.9/5
(40)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)