
Java-Swing

Quiz
•
Computers
•
University
•
Hard
lawrance r
Used 2+ times
FREE Resource
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()
Create a free account and access millions of resources
Similar Resources on Wayground
5 questions
GUI2

Quiz
•
University
6 questions
Các bộ phận của máy tính

Quiz
•
1st Grade - University
9 questions
Clase 06 - Javascript 1

Quiz
•
University
15 questions
การพัฒนา UI แบบโต้ตอบ

Quiz
•
University
10 questions
Java Programming

Quiz
•
University
15 questions
Quizz Programación 2

Quiz
•
University
14 questions
Event Driven Programming

Quiz
•
University
10 questions
Android

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University