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 Inputoutput50 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 Classes and Adts50 Questions
Exam 9: Arrays50 Questions
Exam 10: Inheritance and Polymorphism50 Questions
Exam 11: Handling Exceptions and Events50 Questions
Exam 12: Advanced Guis and Graphics49 Questions
Exam 13: Recursion50 Questions
Exam 14: Searching and Sorting50 Questions
Select questions type
-Which of the following from the window above is a JButton?

Free
(Multiple Choice)
4.8/5
(37)
Correct Answer:
C
To create a window, which of the following classes has to be extended?
Free
(Multiple Choice)
4.8/5
(27)
Correct Answer:
B
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.
Free
(True/False)
4.8/5
(41)
Correct Answer:
True
Which words from the problem statement above could we use to determine the operations for this program?
(Multiple Choice)
4.7/5
(46)
Which of the following methods is NOT part of the class JFrame?
(Multiple Choice)
4.8/5
(42)
Given the declaration, Integer num; The statement num = 8; is known as autoboxing of int type.
(True/False)
4.9/5
(42)
In Java, there is one way to make an application program create a window.
(True/False)
5.0/5
(35)
Which method contains the code that the program executes when a specific event is generated?
(Multiple Choice)
4.9/5
(37)
Which of the following sets the window width to 100 pixels and the height to 200 pixels?
(Multiple Choice)
4.9/5
(40)
The method getContentPane of the class JFrame is used to access the content pane of the window.
(True/False)
4.7/5
(41)
In object-oriented design, the nouns found in the problem specification can be used to select the operations in the program.
(True/False)
4.9/5
(40)
Which package will you most likely have to import in order to write a GUI program?
(Multiple Choice)
4.7/5
(34)
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.9/5
(36)
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
(35)
Based on the problem statement above, which of the following would be a data member?
(Multiple Choice)
4.9/5
(36)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)