AWT Questions

This topic is part of SCJP 1.2 exam but not SCJP 1.4 exam.

  1. Which of the following classes are derived from the Container class. Select the four correct answers.
    1. Component
    2. Panel
    3. java.applet.Applet
    4. Dialog
    5. Frame
    6. MenuComponent
  2. Which of the following classes are derived from the Component class. Select the four correct answers.
    1. Container
    2. Window
    3. List
    4. MenuItem
    5. Choice
  3. Name the class used to represent a GUI application window, which is optionally resizable and can have a title bar, an icon, and menus. Select the one correct answer.
    1. Window
    2. Panel
    3. Dialog
    4. Frame
  4. Which abstract class is the super class of all menu related classes.
  5. Which of these classes can be added to a Frame component. Select the three correct answers.
    1. Menu
    2. Button
    3. PopupMenu
    4. Window
    5. List
  6. Which class can be used to represent a checkbox with a textual label that can appear in a menu. Select the one correct answer.
    1. MenuBar
    2. MenuItem
    3. CheckboxMenuItem
    4. Menu
    5. CheckBox
  7. Which of these classes can be added to any Container class, using the add method defined in Container class. Select the two correct answers.
    1. Button
    2. CheckboxMenuItem
    3. Menu
    4. Canvas

Answers to questions on AWT

  1. b, c, d, e
  2. a, b, c, e
  3. d
  4. MenuComponent
  5. b, c, e
  6. c
  7. a, d
Share this website !!!
Facebook Twitter Linkedin