Java GUI and Event Handling

Tests knowledge of Java Foundation Classes (JFC), Abstract Window Toolkit (AWT), event handling, and GUI components

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which is the basic GUI tool kit shipped with all versions of the JDK and is the part of JFC in java?

  1. Java Foundation Class
  2. Abstract Window Toolkit
  3. Drag and Drop
  4. Javax. accessibility
  5. Javax.swing
Question 2 Multiple Choice (Single Answer)

Which contains classes for implementing various painting styles, complex shapes, fonts and colours in Java?

  1. Accessibility API
  2. Javax.accessibility
  3. Abstract Window Toolkit
  4. 2D API
  5. Javax.swing
Question 3 Multiple Choice (Single Answer)

Which implement the corresponding listener interfaces containing more than one method in Java?

  1. Java Foundation Class
  2. Anonymous Classes
  3. Adapter Classes
  4. Inner Classes
  5. Javax.swing.event
Question 4 Multiple Choice (Single Answer)

Which is one of the more common metaphor used in graphical interfaces today in Java?

  1. Javax.swing
  2. Javax.accessibility
  3. 2D API
  4. Accessibility API
  5. Drag and Drop
Question 5 Multiple Choice (Single Answer)

Which is a suit of libraries design to assist programmer in creating enterprise applications with java?

  1. Java Foundation Class
  2. Anonymous Class
  3. Inner Classes
  4. Adapter Classes
  5. ThebKeyEvent Class
Question 6 Multiple Choice (Single Answer)

Which provides an interface that allow assistive technologies to interact and communicate with JFC and AWT components in java?

  1. 2D API
  2. Abstract Window Toolkit
  3. Accessibility API
  4. Javax.swing
  5. Javax.swing.border
Question 7 Multiple Choice (Single Answer)

Which are the classes that are not named in Java and the classes when you declare in a method do not need a name?

  1. Anonymous Classes
  2. Java Foundation Classes
  3. Inner Classes
  4. Adapter Classes
  5. Event Object
Question 8 Multiple Choice (Single Answer)

Which classes are declared within other classes and provide additional clarity to programs in Java?

  1. Anonymous Classes
  2. Inner Classes
  3. Adapter Classes
  4. The KeyEvent Class
  5. KEY_TYPED Event
Question 9 Multiple Choice (Single Answer)

Which class defines the integer constants that can be used to identify them and is a subclass of InputEvent class in Java?

  1. The Window Event Class
  2. Javax.swing.event
  3. Javax.swing
  4. Java Foundation Class
  5. The MouseEvent Class
Question 10 Multiple Choice (Single Answer)

Which event class defines integer constants that can be used to identify them and subclass of ComponentEvent class in Java?

  1. Java Foundation Class
  2. Javax.swing.event
  3. Javax.swing
  4. The WindowEvent Class
  5. Inner Class
Question 11 Multiple Choice (Single Answer)

Which is generated when a component gains or loses input focus and is subclass of ComponentEvent class in java?

  1. The FocusEvent Class
  2. The InputEvent Class
  3. The ItemEvent Class
  4. The KeyEvent Class
  5. The MouseEvent Class
Question 12 Multiple Choice (Single Answer)

Which classes instance describe text events which are generated by text fields and text areas when characters are entered by a user or program in java?

  1. The MouseEvent Class
  2. The TextEvent Class
  3. The WindowEvent Class
  4. Javax.swing.event
  5. Javax.swing
Question 13 Multiple Choice (Single Answer)

Which event is generated when a check box or a list item is clicked or when a checkable menu item is selected or deselected in Java?

  1. The KeyEvent Class
  2. The MouseEvent
  3. The ItemEvent Class
  4. Javax.swing.event
  5. Javax.swing
Question 14 Multiple Choice (Single Answer)

Which abstract class is a subclass of ComponentEvent and is the superclass for component input events in Java?

  1. The ItemEvent Class
  2. The KeyEvent Class
  3. The MouseEvent Class
  4. The InputEvent Class
  5. Javax.swing.event
Question 15 Multiple Choice (Single Answer)

Which event is generated when keyboard input occurs in Java?

  1. The KeyEvent Class
  2. The MouseEvent Class
  3. The WindowEvent Class
  4. Javax.swing.event
  5. Java Foundation Class