Java Event Handling

Tests knowledge of different event types in Java's event handling framework including ActionEvent, FocusEvent, KeyEvent, MouseEvent, ItemEvent, TextEvent, ContainerEvent, PaintEvent, and AdjustmentEvent.

9 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following objects in the java.util.EventObject is generated when scroll bars and other adjustable elements are used?

  1. ActionEvent
  2. AdjustmentEvent
  3. MouseEvent
  4. The StackFrame
  5. Events
Question 2 Multiple Choice (Single Answer)

Which of the following objects in the java.util.EventObject is generated when components are added to or removed from a container?

  1. Stock
  2. Transaction
  3. ActionEvent
  4. MouseEvent
  5. ContainerEvent
Question 3 Multiple Choice (Single Answer)

Which of the following objects in the java.util.EventObject is generated when a component is activated?

  1. Optimized method invocations
  2. ActionEvent
  3. MouseEvent
  4. KeyEvent
  5. Event
Question 4 Multiple Choice (Single Answer)

Which of the following objects in the java.util.EventObject is generated when a component receives focus for input?

  1. MouseEvent
  2. ActionEvent
  3. Events
  4. FocusEvent
  5. AlarmPresentation
Question 5 Multiple Choice (Single Answer)

Which of the following objects in the java.util.EventObject is generated when a component is painted?

  1. PaintEvent
  2. Events
  3. MouseEvent
  4. ActionEvent
  5. Stock
Question 6 Multiple Choice (Single Answer)

Which of the following objects in the java.util.EventObject is generated when a key on the keyboard is pressed?

  1. Events
  2. MouseEvent
  3. KeyEvent
  4. ActionEvent
  5. Stock
Question 7 Multiple Choice (Single Answer)

Which of the following objects in the java.util.EventObject is generated when an item from a list, a choice or a checkbox is selected?

  1. ItemEvent
  2. StockPresentation
  3. The stackframe
  4. MouseEvent
  5. ActionEvent
Question 8 Multiple Choice (Single Answer)

Which of the following distributed objects belongs to the distributed stock application and represents the alarm set by the user?

  1. AlarmPresentation
  2. Alarm
  3. Stock
  4. StockPresentation
  5. Query
Question 9 Multiple Choice (Single Answer)

Which of the following objects in the java.util.EventObject is generated when the text of a text component is modified?

  1. ActionEvent
  2. TextEvent
  3. Events
  4. Stock
  5. MouseEvent