Search Header Logo

Java GUI Programming Quiz

Authored by Jericho Bernardo

Social Studies

1st Grade

Java GUI Programming Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which package contains the primary classes for creating a GUI in Java?

java.io

javax.swing

java.lang

java.net

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which component serves as the main top-level window in a Swing application?

JPanel

JButton

JFrame

JLabel

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to make a JFrame visible on the screen?

setVisible(true)

showWindow()

display(true)

appear()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default Layout Manager for a JFrame?

FlowLayout

GridLayout

BoxLayout

BorderLayout

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which interface must be implemented to handle button click events?

MouseListener

ActionListener

KeyListener

WindowListener

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a BorderLayout, which region is the default if no constraints are specified?

NORTH

SOUTH

CENTER

WEST

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Swing component allows a user to type a single line of text?

JTextArea

JTextField

JLabel

JButton

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?