Home / CSE MCQs / AWT ::

CSE MCQs :: AWT

  1. To use the ActionListener interface it must be implemented by a class there are several ways to do that find in the following?
  2. A.
    Creating a new class
    B.
    Using the class the graphical component
    C.
    An anonymous inner class
    D.
    All mentioned above

  3. Which is a component in AWT that can contain another component like buttons, text fields, labels etc.?
  4. A.
    Window
    B.
    Container
    C.
    Panel
    D.
    Frame

  5. Which is used to store data and partial results, as well as to perform dynamic linking, return values for methods, and dispatch exceptions?
  6. A.
    Window
    B.
    Panel
    C.
    Frame
    D.
    Container

  7. What are the different types of controls in AWT?
  8. A.
    Labels
    B.
    Pushbuttons
    C.
    Checkboxes
    D.
    Choice lists
    E.
    All of these

  9. Give the abbreviation of AWT?
  10. A.
    Applet Windowing Toolkit
    B.
    Abstract Windowing Toolkit
    C.
    Absolute Windowing Toolkit
    D.
    None of the above

  11. Which class provides many methods for graphics programming?
  12. A.
    java.awt
    B.
    java.Graphics
    C.
    java.awt.Graphics
    D.
    None of the above

  13. By which method You can set or change the text in a Label?
  14. A.
    setText()
    B.
    getText()
    C.
    Both A & B
    D.
    None of the above

  15. Which class can be used to represent a checkbox with a textual label that can appear in a menu.
  16. A.
    MenuBar
    B.
    MenuItem
    C.
    CheckboxMenuItem
    D.
    Menu

  17. The following specifies the advantages of It is lightweight. It supports pluggable look and feel. It follows MVC (Model View Controller) architecture.
  18. A.
    Swing
    B.
    AWT
    C.
    Both A & B
    D.
    None of the above

  19. The Java Foundation Classes (JFC) is a set of GUI components which simplify the development of desktop applications?
  20. A.
    True
    B.
    False
    C.
    All of these
    D.
    None