Sail E0 Webinar

MCQs

Total Questions : 20 | Page 2 of 2 pages
Question 11. To use the ActionListener interface it must be implemented by a class there are several ways to do that find in the following?
  1.    Creating a new class
  2.    Using the class the graphical component
  3.    An anonymous inner class
  4.    All mentioned above
 Discuss Question
Answer: Option D. -> All mentioned above




Question 12. What are the different types of controls in AWT?
  1.    Labels
  2.    Pushbuttons
  3.    Checkboxes
  4.    Choice lists
  5.    All of these
 Discuss Question
Answer: Option E. -> All of these




Question 13. Give the abbreviation of AWT?
  1.    Applet Windowing Toolkit
  2.    Abstract Windowing Toolkit
  3.    Absolute Windowing Toolkit
  4.    None of the above
 Discuss Question
Answer: Option B. -> Abstract Windowing Toolkit




Question 14. Which is used to store data and partial results, as well as to perform dynamic linking, return values for methods, and dispatch exceptions?
  1.    Window
  2.    Panel
  3.    Frame
  4.    Container
 Discuss Question
Answer: Option C. -> Frame




Question 15. Which is a component in AWT that can contain another component like buttons, text fields, labels etc.?
  1.    Window
  2.    Container
  3.    Panel
  4.    Frame
 Discuss Question
Answer: Option B. -> Container




Question 16. How many types of controls does AWT supports these controls are subclasses of component?
  1.    7
  2.    6
  3.    5
  4.    8
 Discuss Question
Answer: Option A. -> 7




Question 17. Which are passive controls that do not support any interaction with the user?
  1.    Choice
  2.    List
  3.    Labels
  4.    Checkbox
 Discuss Question
Answer: Option C. -> Labels




Question 18. How many ways can we align the label in a container?
  1.    1
  2.    2
  3.    3
  4.    4
 Discuss Question
Answer: Option C. -> 3




Question 19. The following way is used to create a frame is by creating the object of Frame class?
  1.    inheritance
  2.    association
  3.    Both A & B
  4.    None of the above
 Discuss Question
Answer: Option B. -> association




Question 20. Which of the following classes are derived from the Component class.
  1.    Container
  2.    Window
  3.    List
  4.    MenuItem
 Discuss Question
Answer: Option D. -> MenuItem




Latest Videos

Latest Test Papers