Java Swing/AWT Graphics

Java Swing/AWT Graphics

9th - 12th Grade

27 Qs

quiz-placeholder

Similar activities

For you

For you

2nd - 12th Grade

22 Qs

Computers For Fun

Computers For Fun

9th - 10th Grade

23 Qs

SHS Quiz 2 Grade X

SHS Quiz 2 Grade X

10th Grade

25 Qs

Arsitektur von neumann, sistem operasi dan aplikasi

Arsitektur von neumann, sistem operasi dan aplikasi

10th Grade - University

25 Qs

Keamanan Jaringan 1

Keamanan Jaringan 1

11th Grade

25 Qs

2ND QTR-QUIZ 4-Proposed ICT Project for Social Change-12-1-2022

2ND QTR-QUIZ 4-Proposed ICT Project for Social Change-12-1-2022

11th Grade

25 Qs

Cybersecurity Checkpoint 1

Cybersecurity Checkpoint 1

10th - 12th Grade

23 Qs

Project Methodology Quiz

Project Methodology Quiz

12th Grade

22 Qs

Java Swing/AWT Graphics

Java Swing/AWT Graphics

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Elizabeth Cavazos

Used 319+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of the line of code:

import java.awt.*;

To allow you to make Random number generators

To use an interface.

To import a package

To allow you to Scan from the terminal or a file.

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is a method?

An organized and functionally based set of related interfaces and classes

Where we type our code.

A set of group of code that can be called for execution.

An instance of a class

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the lines of code DOES NOT call a method?

frame.setSize()

frame.setVisible(true);

JFrame frame;

frame.setResizable(false);

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

JFrame, JPanel, JLabel, JButton are examples of ...

methods

classes

interfaces

packages

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What code adds this JButton to this JPanel?

JPanel panel = new JPanel();

JButton button = new JButton();

panel.add(button);

button.add(panel);

frame.add(panel);

panel.add(JButton);

6.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which of the options below correctly set the background color of a JPanel called panel to the color blue? (More than one option may be correct).

panel.setBackground(0,0,255);

panel.setBackground(BLUE);

panel.setBackground(new Color(0,0,255);

panel.setBackground(Color.BLUE);

panel.addBackgroundColor(BLUE);

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How would you change the text of a label to the text contained by an integer named num;

label.setText(num);

label.updateText(num);

label.setTest("num");

label.setText(num+ "");

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?