GUI Quiz

GUI Quiz

University

10 Qs

quiz-placeholder

Similar activities

CIS1103  Week 9_10 CLO3 Part 1

CIS1103 Week 9_10 CLO3 Part 1

University

12 Qs

Round 2 for Preplacement Bootcamp

Round 2 for Preplacement Bootcamp

University

15 Qs

Career Path in IT

Career Path in IT

University

10 Qs

Cloud QUIZ

Cloud QUIZ

University - Professional Development

12 Qs

PENGENALAN UNITY

PENGENALAN UNITY

University

10 Qs

Computer and Computer System

Computer and Computer System

University

15 Qs

Computer Science (1-9) - Identifying & Preventing Threats

Computer Science (1-9) - Identifying & Preventing Threats

University

11 Qs

GEE-LIE-Intro to ICT

GEE-LIE-Intro to ICT

University

10 Qs

GUI Quiz

GUI Quiz

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Christine Pitos

Used 52+ 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

A JFrame is a descendant of each of the following classes except the ________class.

Component

Jar

Container

Window

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The statement JFrame myFrame = new JFrame(); creates a JFrame that is _______.

invisible and has no title

invisible and has a title

visible and has no title

visible and has a title

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When a user closes a JFrame, the default behavior is for ______.

the JFrame to close and the application to keep running

the JFrame to be hidden and the application to keep running

the JFrame to close and the application to exit

nothing to happen

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose that you create an application in which you instantiate a JFrame named frame1 and a JLabel named label1. Which of the following statements within the application adds label1 to frame1?

label1.add(frame1);

frame1.add(label1);

this.add(label1);

two of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A JFrame contains a JButton named button1 that should execute an actionPerformed() method when clicked. Which statement is needed in the JFrame class?

addActionListener(this);

addActionListener(button1);

button1.addActionListener(this);

this.addActionListener(button1);

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Events in Java are objects that are created by Event Sources (such as JButtons, JPanels, and other Components).

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The three software parts of a GUI program are:

Windows, Buttons, Mice

GUI Components, Graphics, Code

GUI Components, Event Listeners, Application Code

Frames, Code, Events

Create a free account and access millions of resources

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?