WorksheetsSwing + Java-Visuals
Total questions: 89
Worksheet time: 30mins
Name
Class
Date
1.
What is the name of the component that is used to input text in the image?
a)
TextField
b)
TextArea
c)
Button
d)
Label
2.
What is the name of the class that is used to create a button in Swing?
a)
JButton
b)
Button
c)
TextField
d)
Label
3.
What is the name of the property that is used to set the text of a button in Swing?
a)
text
b)
label
c)
value
d)
name
4.
What is the name of the method that is used to add a component to a container in Swing?
a)
add
b)
addComponent
c)
addChild
d)
append
5.
What is the name of the class that is used to create a form in Swing?
a)
JFrame
b)
JPanel
c)
JLabel
d)
JButton
6.
What is the name of the component that is used to display the text "Hello Hello Hello" in the image?
a)
JLabel
b)
JButton
c)
JTextField
d)
JFrame
7.
What is the name of the class that is used to create a button in the image?
a)
JButton
b)
Button
c)
TextField
d)
Label
8.
What is the name of the class that is used to create a radio button in the image?
a)
JRadioButton
b)
RadioButton
c)
Checkbox
d)
Button
9.
What is the name of the class that is used to create a checkbox in the image?
a)
JCheckBox
b)
Checkbox
c)
RadioButton
d)
Button
10.
What is the name of the class that is used to create a text field in the image?
a)
JTextField
b)
TextField
c)
TextArea
d)
Label
11.
What is the name of the software that is being used in the image?
a)
JFormDesigner
b)
NetBeans
c)
Eclipse
d)
IntelliJ IDEA
12.
What is the name of the class that is used to create the table in the image?
a)
JTable
b)
Table
c)
TableView
d)
DataFrame
13.
What is the name of the class that is used to create the panel in the image?
a)
JPanel
b)
Panel
c)
Container
d)
Frame
14.
What is the name of the container class that is used to create the top-level window in the image?
a)
JFrame
b)
JPanel
c)
Container
d)
Window
15.
What is the name of the class that is used to create the label in the image?
a)
JLabel
b)
Label
c)
JButton
d)
JTextField
16.
What is the name of the class that is used to create the button in the image?
a)
JButton
b)
Button
c)
TextField
d)
Label
17.
What is the text on the button in the image?
a)
Click me!
b)
Submit
c)
Save
d)
Cancel
18.
What is the name of the class that is used to create the text field in the image?
a)
JLabel
b)
JButton
c)
JTextField
d)
JFrame
19.
What is the name of the container class that is used to hold the text field and button in the image?
a)
JLabel
b)
JButton
c)
JTextField
d)
JPanel
20.
What is the name of the class that is used to create the label in the image?
a)
JLabel
b)
Label
c)
JButton
d)
JTextField
21.
What is the name of the software that is being used in the image to design a GUI?
a)
JFormDesigner
b)
NetBeans
c)
Eclipse
d)
IntelliJ IDEA
22.
What is the name of the class that is used to create the button in the image?
a)
JButton
b)
Button
c)
TextField
d)
Label
23.
What is the name of the class that is used to create the radio button in the image?
a)
JRadioButton
b)
RadioButton
c)
Checkbox
d)
Button
24.
What is the name of the class that is used to create the text field in the image?
a)
JLabel
b)
JButton
c)
JTextField
d)
JFrame
25.
What is the foreground color of the text in the label in the image?
a)
Red
b)
Blue
c)
Green
d)
Small
26.
What is the name of the class that is used to create the container in the image?
a)
JFrame
b)
JPanel
c)
JLabel
d)
JButton
27.
Which of the following is the name of the class that is used to create the table in the image?
a)
JTable
b)
Table
c)
TableView
d)
DataFrame
28.
What is the name of the class that is used to create the label in the image?
a)
JLabel
b)
Label
c)
JButton
d)
JTextField
29.
What is the text on the button in the image?
a)
Login
b)
Cancel
c)
Register
d)
Demo application
30.
What is the text on the spinner in the image?
a)
Wrong rendering
b)
0.24
c)
ok
d)
Item 1
31.
What is the name of the abstract class that is used as a superclass for JButton and JRadioButton?
a)
Button
b)
AbstractButton
c)
JComponent
d)
JLabel
32.
What is the name of the software that is being used in the image to design a GUI?
a)
JFormDesigner
b)
NetBeans
c)
Eclipse
d)
IntelliJ IDEA
33.
What is the name of the class that is used to create the label in the image?
a)
JLabel
b)
Label
c)
JButton
d)
JTextField
34.
What is the foreground color of the text in the label in the image?
a)
Red
b)
Blue
c)
Green
d)
Black
35.
What is the name of the client in the image?
a)
MLServer
b)
Server
c)
Client
d)
localhost
36.
What is the name of the class that is used to create the container in the image?
a)
JPanel
b)
JFrame
c)
JLabel
d)
JButton
37.
What is the text on the label in the image?
a)
This is a label
b)
Click me!
c)
Male
d)
Wrong rendering
38.
What is the name of the class that is used to create the text field in the image?
a)
JTextField
b)
JLabel
c)
JButton
d)
JFrame
39.
What is the class of the label in the image?
a)
JLabel
b)
JButton
c)
JTextField
d)
JFrame
40.
What is the name of the file that is being uploaded to the FTP server in the image?
a)
Desert.jpg
b)
Upload.jpg
c)
Codejava.net
d)
user1
41.
What is the text in the label in the image?
a)
Contactditor-RIDED 301111020000
b)
Te
c)
To
d)
We
42.
What is the name of the software that is being used to design a GUI in the image?
a)
JFormDesigner
b)
NetBeans
c)
Eclipse
d)
IntelliJ IDEA
43.
What is the class of the component that is used to display the text "This is a label"?
a)
JLabel
b)
JButton
c)
JTextField
d)
JFrame
44.
What is the text on the button that is pointing to by the red arrow in the image?
a)
Login
b)
Cancel
c)
Register
d)
Demo application
45.
What are the names of the two boxes in the image?
a)
NAME: foo, NAME: bar
b)
Close, Show Name
c)
Show Name, Show Name
d)
foo, bar
46.
What is the class of the component that is used to display the text "wid ma mel"?
a)
JLabel
b)
JButton
c)
JTextField
d)
JFrame
47.
What is the department of Kundan Kumar Jha in the image?
a)
CSE
b)
IT
c)
Mechanical
d)
Electrical
48.
What is the name of the country in the drop-down list in the image?
a)
Afghanistan
b)
Honduras
c)
Hungary
d)
Iceland
49.
Which of the following is not a component in the image?
a)
Label
b)
JButton
c)
Panel
d)
Frame
50.
What is the class of the component that is used to display the text "This is a label"?
a)
JLabel
b)
JButton
c)
JTextField
d)
JFrame
51.
What is the superclass of JLabel, JButton, and JTextField?
a)
Object
b)
Component
c)
Container
d)
Window
52.
What is the class of the component that is used to display the text "This is a text field"?
a)
JLabel
b)
JButton
c)
JTextField
d)
JFrame
53.
What is the name of the database that is being set up in the image?
a)
None
b)
Northwind
c)
pubs
d)
sample
54.
What is the name of the software that is being used to design a GUI in the image?
a)
JFormDesigner
b)
NetBeans
c)
Eclipse
d)
IntelliJ IDEA
55.
What is the class of the component that is used to display the text "Button"?
a)
JLabel
b)
JButton
c)
JTextField
d)
JFrame
56.
What is the name of the variable that is used to store the number that the user entered?
a)
number
b)
value
c)
input
d)
data
57.
What is the name of the class of the component that is used to display the text "CDE/Motif"?
a)
JLabel
b)
JButton
c)
JTextField
d)
JFrame
58.
Which of the following components is not used to create a watermark?
a)
JLabel
b)
JButton
c)
JTextField
d)
JProgressBar
59.
What is the name of the variable that is used to store the text that is displayed in the label?
a)
label
b)
text
c)
value
d)
data
60.
What is the class of the component that is used to display the text "Swing E-mail Sender Program"?
a)
JLabel
b)
JButton
c)
JFrame
d)
JPanel
61.
Which of the following layout managers is used to arrange the buttons in the image?
a)
BorderLayout
b)
FlowLayout
c)
GridLayout
d)
BoxLayout
62.
What is the name of the class of the component that is used to **display the login username and password?
a)
JLabel
b)
JButton
c)
JTextField
d)
JFrame
63.
What is the name of the programming language that is pictured?
a)
Java
b)
Python
c)
C++
d)
C#
64.
What is the name of the folder that is selected in the image?
a)
HelloSwing
b)
Project Name
c)
Project Folder
d)
Use Dedicated Folder for Storing Libraries
65.
What is the name of the class of the component that is used to display the text "Hello, world!"?
a)
JLabel
b)
JButton
c)
JTextField
d)
JFrame
66.
What is the name of the file that is saved in the image?
a)
Calendar.ser
b)
Reminder.ser
c)
Mother's Day.ser
d)
2020-05-10.ser
67.
What is the username of the user in the image?
a)
Ramesh
b)
Mage
c)
Login
d)
Password
68.
What is the name of the dashboard that is shown in the image?
a)
Inventory Management
b)
Sales Management
c)
Purchase Management
d)
Order Management
69.
What is the name of the button that is used to compact the data source?
a)
Compact
b)
OK
c)
Cancel
d)
Help
70.
What is the name of the class of the component that is used to display the text "First Name"?
a)
JLabel
b)
JButton
c)
JTextField
d)
JFrame
71.
What is the name of the fruit that is highlighted in the image?
a)
Apple
b)
Peach
c)
Banana
d)
Orange
72.
According to the image, how much water should a 70 kg person drink per day?
a)
2.4 L
b)
2.8 L
c)
3.2 L
d)
3.6 L
73.
What is the file type of the file that is selected in the image?
a)
txt
b)
jpg
c)
png
d)
gif
74.
Which of the following layout managers is used to arrange the buttons in the image?
a)
BorderLayout
b)
FlowLayout
c)
GridLayout
d)
BoxLayout
75.
What is the name of the class of the component that is used to display the text "GameRoom"?
a)
JLabel
b)
JButton
c)
JFrame
d)
JPanel
76.
What is the name of the column that shows the experience of the employees in the image?
a)
Experience
b)
Name
c)
Proficient In
d)
Relocate
77.
What is the name of the font that is used to display the text "FlatLaf"?
a)
FlatLaf
b)
DejaVu Sans
c)
Tahoma
d)
Arial
78.
What is the difference between the old version and the new version of the text in the image?
a)
The old version is bold
b)
The new version is italic
c)
The old version is underlined
d)
The new version is in a different font
79.
What is the value of the variable count in the image?
a)
1
b)
2
c)
3
d)
4
80.
What is the name of the application that is displayed in the image?
a)
Smart Student
b)
Google Classroom
c)
Canvas
d)
Moodle
81.
What is the name of the button that is used to create a new customer?
a)
Create
b)
Update
c)
Delete
d)
Cancel
82.
What is the time of the party in the image?
a)
14:00:00
b)
15:00:00
c)
16:00:00
d)
17:00:00
83.
What is the style of the pizza in the image?
a)
Thin
b)
Thick
c)
Pepperoni
d)
Mushrooms
84.
Which of the following layout managers is used to arrange the components in the image?
a)
BorderLayout
b)
FlowLayout
c)
GridLayout
d)
BoxLayout
85.
What is the name of the class of the component that is used to display the text "Entrada"?
a)
JLabel
b)
JButton
c)
JFrame
d)
JPanel
86.
What is the name of the top-level window that is used to display the text "Window"?
a)
JFrame
b)
JDialog
c)
JPanel
d)
JApplet
87.
What is the purpose of the arrows in the image?
a)
To indicate the required fields.
b)
To indicate the optional fields.
c)
To indicate the read-only fields.
d)
To indicate the disabled fields.
88.
What is the difference between the old version and the new version of the button in the image?
a)
The old version is disabled.
b)
The new version is enabled.
c)
The old version is smaller.
d)
The new version is bigger.
89.
What is the name of the font that is used to display the text "Text Fields"?
a)
Arial
b)
Times New Roman
c)
Verdana
d)
Courier New
100 %
