Java-Swing

Java-Swing

University

10 Qs

quiz-placeholder

Similar activities

ITP Review Quiz

ITP Review Quiz

University

15 Qs

หน่วยที่ 3 การออกแบบ สร้าง แก้ไข ตกแต่ง PowerPoint

หน่วยที่ 3 การออกแบบ สร้าง แก้ไข ตกแต่ง PowerPoint

University

10 Qs

Logic Based Testing

Logic Based Testing

University

15 Qs

ANIMASI 2D&3D

ANIMASI 2D&3D

University

10 Qs

KDP - QUIZ 1

KDP - QUIZ 1

University

10 Qs

Excel - Pop Quiz - 3

Excel - Pop Quiz - 3

University

10 Qs

bootstrap let's play

bootstrap let's play

University

15 Qs

Microsoft Word Quiz

Microsoft Word Quiz

University

15 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