Java-Swing

Java-Swing

University

10 Qs

quiz-placeholder

Similar activities

Chapter 4 Revision

Chapter 4 Revision

University

10 Qs

Topik 2 : Microsoft Word S1

Topik 2 : Microsoft Word S1

University

12 Qs

quiz autocadd 1

quiz autocadd 1

University

10 Qs

Introduction to Excel

Introduction to Excel

KG - Professional Development

10 Qs

Microprocessor

Microprocessor

University

15 Qs

TES AWAL MODUL 2

TES AWAL MODUL 2

University

12 Qs

MS. Excel

MS. Excel

12th Grade - University

15 Qs

Tuần 20_Chỉnh sửa hình ảnh

Tuần 20_Chỉnh sửa hình ảnh

2nd Grade - University

10 Qs

Java-Swing

Java-Swing

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

lawrance r

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers