
Swing + Java-Visuals
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Medium
ANIL KUMAR
Used 1+ times
FREE Resource
Enhance your content in a minute
89 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the name of the component that is used to input text in the image?
Answer explanation
The answer to the question is TextField. The component in the image that is used to input text is a TextField. The other answer choices are incorrect. TextArea is a component that is used to display multiple lines of text. Button is a component that is used to perform an action. Label is a component that is used to display text.
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the name of the class that is used to create a button in Swing?
Answer explanation
The answer to the question is JButton. The class that is used to create a button in Swing is JButton. The other answer choices are incorrect. Button is an abstract class that is used as a superclass for JButton. TextField and Label are classes that are used to create text fields and labels, respectively.
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the name of the property that is used to set the text of a button in Swing?
Answer explanation
The answer to the question is text. The property that is used to set the text of a button in Swing is text. The other answer choices are incorrect. label is the property that is used to set the text of a label. value is the property that is used to set the value of a button. name is the property that is used to set the name of a button.
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the name of the method that is used to add a component to a container in Swing?
Answer explanation
The answer to the question is add. The method that is used to add a component to a container in Swing is add. The other answer choices are incorrect. addComponent is a deprecated method that is no longer supported in Swing. addChild and append are not methods that are used to add components to containers in Swing.
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the name of the class that is used to create a form in Swing?
Answer explanation
The answer to the question is JFrame. The class that is used to create a form in Swing is JFrame. The other answer choices are incorrect. JPanel is a container that can be used to group components together. JLabel is a component that is used to display text. JButton is a component that is used to perform an action.
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the name of the component that is used to display the text "Hello Hello Hello" in the image?
Answer explanation
The answer to the question is JLabel. The component that is used to display the text "Hello Hello Hello" in the image is a JLabel. The other answer choices are incorrect. JButton is a component that is used to perform an action. JTextField is a component that is used to input text. JFrame is a container that is used to hold other components.
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the name of the class that is used to create a button in the image?
Answer explanation
The answer to the question is JButton. The class that is used to create a button in the image is JButton. The other answer choices are incorrect. Button is an abstract class that is used as a superclass for JButton. TextField and Label are classes that are used to create text fields and labels, respectively.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
