Swing + Java-Visuals

Swing + Java-Visuals

Professional Development

89 Qs

quiz-placeholder

Similar activities

M2 R5 Chpater 14

M2 R5 Chpater 14

Professional Development

91 Qs

Formulas & Functions in Excel

Formulas & Functions in Excel

Professional Development

86 Qs

AZ-900 (321-412)

AZ-900 (321-412)

Professional Development

90 Qs

Guess pls

Guess pls

Professional Development

94 Qs

Arrays-visual

Arrays-visual

Professional Development

87 Qs

5/23 - IT Bridge Final Review

5/23 - IT Bridge Final Review

Professional Development

84 Qs

Test STEM English IT

Test STEM English IT

1st Grade - Professional Development

85 Qs

ANNEX D 6/5/2024

ANNEX D 6/5/2024

Professional Development

91 Qs

Swing + Java-Visuals

Swing + Java-Visuals

Assessment

Quiz

Computers

Professional Development

Medium

Created by

ANIL KUMAR

Used 1+ times

FREE Resource

89 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image
What is the name of the component that is used to input text in the image?
TextField
TextArea
Button
Label

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

Media Image
What is the name of the class that is used to create a button in Swing?
JButton
Button
TextField
Label

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

Media Image
What is the name of the property that is used to set the text of a button in Swing?
text
label
value
name

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

Media Image
What is the name of the method that is used to add a component to a container in Swing?
add
addComponent
addChild
append

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

Media Image
What is the name of the class that is used to create a form in Swing?
JFrame
JPanel
JLabel
JButton

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

Media Image
What is the name of the component that is used to display the text "Hello Hello Hello" in the image?
JLabel
JButton
JTextField
JFrame

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

Media Image
What is the name of the class that is used to create a button in the image?
JButton
Button
TextField
Label

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.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?