Java GUI Basics

Java GUI Basics

11th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Java Methods & Constructors

Java Methods & Constructors

10th - 12th Grade

11 Qs

STEM Productions Coding and Components Assessment

STEM Productions Coding and Components Assessment

9th - 12th Grade

17 Qs

Quiz 14 - Swing Components

Quiz 14 - Swing Components

11th Grade

10 Qs

Java Basics

Java Basics

12th Grade

17 Qs

OOP - Java Classes

OOP - Java Classes

12th Grade - University

15 Qs

Computer Programming: Graphics

Computer Programming: Graphics

8th - 11th Grade

11 Qs

Advanced Java Study Guide

Advanced Java Study Guide

11th - 12th Grade

10 Qs

Search for Content on Methods in Java

Search for Content on Methods in Java

10th - 12th Grade

11 Qs

Java GUI Basics

Java GUI Basics

Assessment

Quiz

11th - 12th Grade

Medium

Created by

joan pet

Used 135+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is it called when a program is written to respond to the button clicks, menu selections, and other actions of the user in whatever order the user does them?

Action-driven programminAg

Event-driven programming.

User-driven programming

Mouse-driven programming

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The three main parts of a GUI program are:

Windows, Buttons, Mice

GUI Components, Graphics, Code

GUI Components, Event Listeners, Application Code

Frames, Code, Events

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the name for a method that responds to events?

A container method.

A snoop method.

A listener method.

An application method.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the base class of nearly all Swing classes?

Object

Component

Swing

JComponent

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Java, what do you call an area on the screen that has nice borders and various buttons along the top border?

A window

A screen

A box

A frame.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method sets the size of the displayed JFrame?

setSize( int width, int height)

setSize( int height, int width)

setVisible( int width, int height)

setVisible( int height, int width)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following sets the frame to 300 pixels wide by 200 high?

frm.setSize( 300, 200 );

frm.setSize( 200, 300 );

frm.paint( 300, 200 );

frm.setVisible( 300, 200 );

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?