Quiz On Basic Gui

10 Questions | Total Attempts: 2119

SettingsSettingsSettings
Programming Quizzes & Trivia

This quiz deals with basic GUI – or Graphical User Interface – which is a type of user interface that allows users to interact with electronic devices through the usage of graphical icons and visual indicators. What do you know about it?


Questions and Answers
  • 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

  • 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

  • 3. 
    The three main parts of a GUI program are:
    • A. 

      Windows, Buttons, Mice

    • B. 

      GUI Components, Graphics, Code

    • C. 

      GUI Components, Event Methods, Application Methodes

    • D. 

      Frames, Code, Events

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

      Window

    • B. 

      Mouse

    • C. 

      Monitor

    • D. 

      Button

  • 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.

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

      An Event.

    • B. 

      A Button object.

    • C. 

      A Container.

    • D. 

      A Listener.

  • 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.

  • 8. 
    The class that is the ultimate ancestor of all the other classes is the class called...
    • A. 

      GUI

    • B. 

      AWT

    • C. 

      Object

    • D. 

      Container

  • 9. 
    Which of the following is the class that is derived from Container and is one of the base classes of Swing? 
    • A. 

      Object

    • B. 

      Component

    • C. 

      Swing

    • D. 

      JComponent

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

      A

    • B. 

      J

    • C. 

      B

    • D. 

      S

Back to Top Back to top