Exam 12: Advanced Guis and Graphics
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
Which of the following mouse events is handled by the interface MouseMotionListener?
Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
C
A mouse can generate ____ different types of events.
Free
(Multiple Choice)
4.8/5
(38)
Correct Answer:
C
The class Container is the superclass of all the classes designed to provide a GUI.
Free
(True/False)
4.8/5
(35)
Correct Answer:
True
Unlike application programs, when you compile a Java applet, no .class file is produced.
(True/False)
4.8/5
(43)
The class Graphics provides methods for drawing items such as lines, ovals, and rectangles on the screen.
(True/False)
4.8/5
(36)
You must import the package javax.swing in order to use the methods in the class Font.
(True/False)
4.8/5
(40)
Which of the following sets the background color of the applet to white?
(Multiple Choice)
4.8/5
(31)
menuMB.add(fileMenu);
MenuMB.add(editMenu);
MenuMB.add(viewMenu);
MenuMB.add(insertMenu);Which menu will appear first if it is added to the menu bar in the order shown in the accompanying figure?
(Multiple Choice)
4.8/5
(37)
Which of the following constructors would produce the color white?
(Multiple Choice)
4.7/5
(39)
In which of the following layout managers do all rows (columns) have the same number of components and all components have the same size?
(Multiple Choice)
4.8/5
(36)
Which of the following is the default layout manager for a Java application?
(Multiple Choice)
4.7/5
(35)
When you type a regular alphanumeric key, the ____ method is executed.
(Multiple Choice)
4.7/5
(42)
Like Java application programs, Java applets have the method main.
(True/False)
4.8/5
(33)
Item events are handled by the interface ItemListener, which contains only the abstract method itemStateChanged.
(True/False)
4.8/5
(40)
The layout manager FlowLayout places components in the container from left to right and centered, by default, until no more items can be placed.
(True/False)
4.7/5
(44)
Showing 1 - 20 of 48
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)