AWT MCQ Questions And Answers - Java Technologies

AWT MCQs : This section focuses on "basics" of AWT. These Multiple Choice Questions (MCQ) should be practiced to improve the AWT skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.

1. AWT stands for ?

A. All Window Toolkit
B. Abstract Work Toolkit
C. Abstract Window Toolkit
D. Abstract Window Text

View Answer


2. The subclass of a java.awt.Component class is known as a ?

A. system
B. component
C. container
D. component manager

View Answer


3. What is the super class of all components of Java?

A. java.all.Component
B. all.awt.Component
C. java.awt.Component
D. awt.Component

View Answer


4. The subclass of a java.awt.Container class is known as a container.

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say

View Answer


5. How many layout managers defined in java.awt package?

A. 2
B. 3
C. 4
D. 5

View Answer


6. A ___________ dictates the style of arranging the components in a container.

A. border layout
B. grid layout
C. panel
D. layout manager

View Answer


7. Which method used to place some text in the text field?

A. getText(String str)
B. setText(String str)
C. putText(String str)
D. None of the above

View Answer


8. What is the listener used to handle the events of a text field?

A. java.awt.ActionListener interface
B. java.awt.event.ActionListener
C. awt.event.ActionListener interface
D. java.awt.event.ActionListener interface

View Answer


9. Which method used to change the foreground (text) color of components like text field?

A. setBackground(Color clr) 
B. setForeground(Color clr)
C. setColor(Color clr)
D. setEditable(boolean state)

View Answer


10. getLabel() method used to retrieve the label of a button.

A. Yes
B. No
C. Can be yes or no
D. Can not say

View Answer




Discussion



* You must be logged in to add comment.