Java-Swing

Java-Swing

University

10 Qs

quiz-placeholder

Similar activities

Swing

Swing

University

15 Qs

CSL203 OOP Lab Continuous Assessment  Viva Cycle5

CSL203 OOP Lab Continuous Assessment Viva Cycle5

University

10 Qs

Conhecimentos prévios em Programação Orientada a Objetos

Conhecimentos prévios em Programação Orientada a Objetos

11th Grade - University

10 Qs

Programación 1: Examen Final Teórico

Programación 1: Examen Final Teórico

University

10 Qs

Quis 2 Teori PJV

Quis 2 Teori PJV

University

10 Qs

Java Quiz 2

Java Quiz 2

University

8 Qs

12. Swing: Controles Básicos

12. Swing: Controles Básicos

University

10 Qs

Java GUI

Java GUI

University

15 Qs

Java-Swing

Java-Swing

Assessment

Quiz

Computers

University

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?