JAVA Applets

Information Technology

21 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which method of life cycle of an applet is used to perform clean-up operation?

  1. start() method
  2. stop() method
  3. destroy() method
  4. none of these
Question 2 Multiple Choice (Single Answer)

Which of the following methods of life cycle of an applet initilizes variables, and add components like buttons and check boxes to the applet?

  1. init() method
  2. start() method
  3. stop() method
  4. destroy() method
Question 3 Multiple Choice (Single Answer)

Which method is called when the applet loses focus?

  1. init() method
  2. start() method
  3. stop() method
  4. destroy() method
Question 4 Multiple Choice (Single Answer)

Which of the following methods is the first to be called when an applet is loaded into memory of computer?

  1. init() method
  2. stop() method
  3. destroy() method
  4. none of these
Question 5 Multiple Choice (Single Answer)

Which of the following methods of the painting is called to clear the screen and call the paint() method?

  1. update() method
  2. repaint() method
  3. paint() method
  4. none of these
Question 6 Multiple Choice (Single Answer)

______________ method is used by the browser when user moves to another page.

  1. init()
  2. destroy()
  3. stop()
  4. none of these
Question 7 Multiple Choice (Single Answer)

Which method of the painting is called when you want the applet area to be redrawn?

  1. paint() method
  2. repaint() method
  3. update() method
  4. none of these
Question 8 Multiple Choice (Single Answer)

Which event is generated when a component is added to or removed from container?

  1. Item Event
  2. Container Event
  3. Adjustment Event
  4. None of these
Question 9 Multiple Choice (Single Answer)

Which method of ItemEvent can be used to obtain reference to the ItemSelectable objects that generate an event?

  1. getItem()
  2. getItemSelectable()
  3. getStateChange()
  4. none of these
Question 10 Multiple Choice (Single Answer)

Which event is generated when a component gains or loses input focus?

  1. Focus Event
  2. Keyboard Event
  3. Text Event
  4. Mouse Event
Question 11 Multiple Choice (Single Answer)

In Java Programming Language, which classes implement the corresponding listener interfaces containing more than one method?

  1. Adapter classes
  2. Inner classes
  3. Anonymous classes
  4. Window classes
Question 12 Multiple Choice (Single Answer)

_________________ are the classes that do not need a name since you don't need them anywhere else in the program.

  1. Inner classes
  2. Adapter classes
  3. Anonymous classes
  4. None of these
Question 13 Multiple Choice (Single Answer)

___________ are classes that are declared within other classes. They are also known as nested classes and provide additional clarity to the program.

  1. Inner classes
  2. Adapter classes
  3. Anonymous classes
  4. Text classes
Question 14 Multiple Choice (Single Answer)

_____________ is the back bone of JDBC architecture.

  1. ODBC
  2. JDBC
  3. JDBC Driver Manager
  4. ZOBC
Question 15 Multiple Choice (Single Answer)

______________ is generated by text fields and text areas when characters are entered by a user or program.

  1. Focus Event
  2. Item Event
  3. Text Event
  4. None of these
Question 16 Multiple Choice (Single Answer)

Which method of MouseEvent obtains the number of mouse clicks for the event?

  1. translatePoint()
  2. getClickCount()
  3. isPopupTrigger()
  4. getitem()
Question 17 Multiple Choice (Single Answer)

Which component of an event is the object that generates the event?

  1. Event object
  2. Event source
  3. Event handler
  4. None of these
Question 18 Multiple Choice (Single Answer)

_________ is generated when a button is pressed, a list item is double-clicked or a menu item is selected.

  1. Action Event
  2. Adjustment Event
  3. Component Event
  4. Container Event
Question 19 Multiple Choice (Single Answer)

Which of the following events is generated when the size, position or visibility of a component is changed?

  1. Adjustment Event
  2. Component Event
  3. Container Event
  4. Item Event
Question 20 Multiple Choice (Single Answer)

Which event is generated when a checkbox or a list item is clicked or when a check menu item is selected or deselected?

  1. Container Event
  2. Component Event
  3. Focus Event
  4. Item Event
Question 21 Multiple Choice (Single Answer)

Which of the following user interfaces defines how should components be arranged in a container?

  1. Component
  2. Container
  3. Layout manager
  4. None of these