
Java-Swing
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
lawrance r
Used 4+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which package contains Java Swing classes?
java.swing
javax.swing
java.awt.swing
java.swing.awt
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Swing, which method is used to make a frame visible?
setSize()
show()
setVisible(true)
display()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default layout manager for JFrame?
FlowLayout
GridLayout
BorderLayout
BoxLayout
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main difference between AWT and Swing?
Swing is heavyweight, AWT is lightweight
Swing is faster than AWT
AWT is more advanced than Swing
Swing components are platform-independent
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you handle events in Java Swing?
By implementing the ActionListener interface
By using threads
By creating a separate class
By using the Runnable interface
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which event occurs when a button is clicked?
MouseEvent
ActionEvent
WindowEvent
KeyEvent
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to register an event listener for a button?
addListener()
registerActionListener()
addActionListener()
attachListener()
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
10 questions
Computer Languages
Quiz
•
KG - University
15 questions
Web Development
Quiz
•
12th Grade - University
15 questions
Chapter : 9 Working with tables
Quiz
•
5th Grade - University
10 questions
Quiz week 5 Raid
Quiz
•
University
12 questions
Pengolahan Dokumen, Jaringan Komputer dan Cloud
Quiz
•
University
10 questions
แบบทดสอบการเขียนโปรแกรมเพิ่มข้อมูล (INSERT) พร้อม Sweet Alert 2
Quiz
•
University
15 questions
6th Grade Media Quiz
Quiz
•
KG - University
10 questions
Jakob Nielsen's 10 Usability Heuristics
Quiz
•
10th Grade - University
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
