
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
GUI Swing

Quiz
•
University - Professi...
6 questions
Pre Test Modul 1 & 2

Quiz
•
University
10 questions
CSL203 OOP Lab Continuous Assessment Viva Cycle5

Quiz
•
University
15 questions
Quiz sobre Interfaces Gráficas en JAVA

Quiz
•
University
10 questions
Quis 2 Teori PJV

Quiz
•
University
10 questions
Cours 7 : Swing en Java

Quiz
•
University
8 questions
Post Test Modul 1 & 2

Quiz
•
University
10 questions
INTERNET CONNECTIONS

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade