A1_ITE 186: GUI

A1_ITE 186: GUI

University

10 Qs

quiz-placeholder

Similar activities

Cours 7 : Swing en Java

Cours 7 : Swing en Java

University

10 Qs

POCO4A - Revisão - Interfaces Gráficas

POCO4A - Revisão - Interfaces Gráficas

University

10 Qs

JPRG Topic 3 - Graphical User Interfaces

JPRG Topic 3 - Graphical User Interfaces

University

6 Qs

Java Swing

Java Swing

University

10 Qs

Java GUI

Java GUI

University

15 Qs

Quiz sobre Interfaces Gráficas en JAVA

Quiz sobre Interfaces Gráficas en JAVA

University

15 Qs

GUI Quiz

GUI Quiz

University

10 Qs

Swing

Swing

University

15 Qs

A1_ITE 186: GUI

A1_ITE 186: GUI

Assessment

Quiz

Computers

University

Medium

Created by

Ira Pongasi

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which package in Java contains the Swing components?

java.swing

javax.swing

java.awt.swing

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Swing component is used to create a simple button?

JButton

JLabel

JTextField

JPanel

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This layout manager allows you to specify the number of rows and columns in the layout:

BorderLayout

FlowLayout

GridLayout

BoxLayout

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to set the title of a JFrame?

setTitle()

setHeader()

setFrameTitle()

setWindowTitle()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method is used to make a JFrame visible?

setVisible(true)

show()

display()

enable()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Swing component allows users to enter a single line of text?

JLabel

JTextArea

JTextField

JPanel

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you add an event listener to a JButton?

button.addActionListener(listener);

button.addEventListener(listener);

button.addClickListener(listener);

button.addListener(listener);

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?