A1_ITE 186: GUI

A1_ITE 186: GUI

University

10 Qs

quiz-placeholder

Similar activities

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

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

11th Grade - University

10 Qs

CSL203 OOP Lab Continuous Assessment  Viva Cycle5

CSL203 OOP Lab Continuous Assessment Viva Cycle5

University

10 Qs

Java : Graphics and Painting

Java : Graphics and Painting

University

7 Qs

SPRING INTRODUCTION

SPRING INTRODUCTION

University

10 Qs

Post Test Modul 1 & 2

Post Test Modul 1 & 2

University

8 Qs

Training RPL 2

Training RPL 2

University

10 Qs

AJP_5CSD_Batch-1 (2025-26)

AJP_5CSD_Batch-1 (2025-26)

University

10 Qs

Fund.Progra - Aula Invertida - Semana 8

Fund.Progra - Aula Invertida - Semana 8

University

5 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?