Quiz on Basic GUI

This is a practice quiz. The results are not recorded anywhere and do not affect your grade. The questions on this quiz might not appear in any quiz or test that does count toward your grade.

Instructions: For each question, choose the single best answer. Make your choice by clicking on its button. You can change your answers at any time. When the quiz is graded, the correct answers will appear in the box after each question.


1. What is it called when a program is written to respond to the button clicks, menu selections, and other actions of the user in whatever order the user does them?

a.    Event-driven programming.
b.    Action-driven programming.
c.    User-driven programming.
d.    Mouse-driven programming

Correct Answer Is:


2. The fundamental classes for GUI programming are contained in the:

a.    GUI toolkit
b.    Abstract Windowing Toolkit
c.    Graphics Event Toolkit
d.    Java Enhancement Toolkit

Correct Answer Is:


3. The three software parts of a GUI program are:

a.    Windows, Buttons, Mice
b.    GUI Components, Graphics, Code
c.    GUI Components, Event Listeners, Application Code
d.    Frames, Code, Events

Correct Answer Is:


4. What is the one component that nearly all GUI programs will have?

a.    Window
b.    Mouse
c.    Monitor
d.    Button

Correct Answer Is:


5. What is a container object in GUI programming?

a.    A container is another name for an array or vector.
b.    A container is any class that is made up of other classes.
c.    A container is a primitive variable that contains the actual data.
d.    A container is a GUI component that has other GUI components placed inside of it.

Correct Answer Is:


6. When the user clicks on a button, what is generated?

a.    An Event.
b.    A Button object.
c.    A Container
d.    A Listener.

Correct Answer Is:


7. What is the name for a method that responds to events?

a.    A container method.
b.    A snoop method.
c.    A listener method.
d.    An application method.

Correct Answer Is:


8. What is the parent class of the AWT Component class?

a.    GUI
b.    AWT
c.    Object
d.    Container

Correct Answer Is:


9. What is the base class of all Swing classes?

a.    Object
b.    Component
c.    Swing
d.    JComponent

Correct Answer Is:


10. What letter do many Swing class names start with?

a.    A
b.    B
c.    J
d.    S

Correct Answer Is:


The number you got right:       Percent Correct:       Letter Grade:   

Click here (If you have just returned here from another page, or have re-loaded this page, you will need to click again on each of your choices for the grading program to work correctly. You may want to press the "shift key" while clicking on reload to clear the old answers.)