Similar Collections


    No collections found

questions

Title
Which of these packages contains all the classes and methods required for even handling in Java

Which of these packages contains all the classes and methods required for even handling in Java


  1. java.applet
  2. java.awt
  3. java.event
  4. java.awt.event
discuss
What is an event in delegation event model used by Java programming language

What is an event in delegation event model used by Java programming language?


  1. An event is an object that describes a state change in a source
  2. An event is an object that describes a state change in processing
  3. An event is an object that describes any change by the user and system
  4. An event is a class used for defining object, to create events
discuss
Which of these methods are used to register a keyboard event listener

Which of these methods are used to register a keyboard event listener?


  1. KeyListener()
  2. addKistener()
  3. addKeyListener()
  4. eventKeyboardListener()
discuss
Which of these methods are used to register a mouse motion listener

Which of these methods are used to register a mouse motion listener?


  1. addMouse()
  2. addMouseListener()
  3. addMouseMotionListner()
  4. eventMouseMotionListener()
discuss
What is a listener in context to event handling

What is a listener in context to event handling?


  1. A listener is a variable that is notified when an event occurs
  2. A listener is a object that is notified when an event occurs
  3. A listener is a method that is notified when an event occurs
  4. None of the mentioned
discuss
Event class is defined in which of these libraries

Event class is defined in which of these libraries?


  1. java.io
  2. java.lang
  3. java.net
  4. java.util
discuss
Which of these methods can be used to determine the type of event

Which of these methods can be used to determine the type of event?


  1. getID()
  2. getSource()
  3. getEvent()
  4. getEventObject()
discuss
Which of these class is super class of all the events

Which of these class is super class of all the events?


  1. EventObject
  2. EventClass
  3. ActionEvent
  4. ItemEvent
discuss
Which of these events will be notified if scroll bar is manipulated

Which of these events will be notified if scroll bar is manipulated?


  1. ActionEvent
  2. ComponentEvent
  3. AdjustmentEvent
  4. WindowEvent
discuss
Which of these events will be generated if we close an applet’s window

Which of these events will be generated if we close an applet’s window


  1. ActionEvent
  2. ComponentEvent
  3. AdjustmentEvent
  4. WindowEvent
discuss
Which of these events is generated when a button is pressed

Which of these events is generated when a button is pressed?


  1. ActionEvent
  2. KeyEvent
  3. WindowEvent
  4. AdjustmentEvent
discuss
Which of these methods can be used to obtain the command name for invoking ActionEvent object

Which of these methods can be used to obtain the command name for invoking ActionEvent object?


  1. getCommand()
  2. getActionCommand()
  3. getActionEvent()
  4. getActionEventCommand()
discuss
Which of these are integer constants defined in ActionEvent class

Which of these are integer constants defined in ActionEvent class?


  1. ALT_MASK
  2. CTRL_MASK
  3. SHIFT_MASK
  4. All of the mentioned
discuss
Which of these methods can be used to know which key is pressed

Which of these methods can be used to know which key is pressed?


  1. getKey()
  2. getModifier()
  3. getActionKey()
  4. getActionEvent()
discuss
Which of these events is generated by scroll bar

Which of these events is generated by scroll bar?


  1. ActionEvent
  2. KeyEvent
  3. WindowEvent
  4. AdjustmentEvent
discuss
Which of these methods can be used to determine the type of adjustment event

Which of these methods can be used to determine the type of adjustment event?


  1. getType()
  2. getEventType()
  3. getAdjustmentType()
  4. getEventObjectType()
discuss
Which of these methods can be used to know the degree of adjustment made by the user

Which of these methods can be used to know the degree of adjustment made by the user?


  1. getValue()
  2. getAdjustmentType()
  3. getAdjustmentValue()
  4. getAdjustmentAmount()
discuss
Which of these constant value will change when the button at the end of scroll bar was clicked to increase its value

Which of these constant value will change when the button at the end of scroll bar was clicked to increase its value?


  1. BLOCK_DECREMENT
  2. BLOCK_INCREMENT
  3. UNIT_DECREMENT
  4. UNIT_INCREMENT
discuss
Which of these events is generated when the size of an event is changed

Which of these events is generated when the size of an event is changed?


  1. ComponentEvent
  2. ContainerEvent
  3. FocusEvent
  4. InputEvent
discuss
Which of these events is generated when the component is added or removed

Which of these events is generated when the component is added or removed?


  1. ComponentEvent
  2. ContainerEvent
  3. FocusEvent
  4. InputEvent
discuss
total MCQs: 44

MCQs

44

Views

122

Best Answers

299

Points

5