Java Swing/AWT Graphics

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Elizabeth Cavazos
Used 319+ times
FREE Resource
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
Similar Resources on Wayground
23 questions
PowerPoint Chapter 1

Quiz
•
9th - 12th Grade
22 questions
Queen Soal Komputer

Quiz
•
10th Grade
25 questions
webMethods Review Session 1

Quiz
•
7th - 12th Grade
23 questions
Wordpress Review

Quiz
•
7th - 10th Grade
22 questions
ETECH_QUIZ

Quiz
•
11th Grade
32 questions
S3 Adobe Flash CC (Animate)

Quiz
•
11th - 12th Grade
25 questions
TIK Kelas 8 Semester 2-1

Quiz
•
7th - 9th Grade
30 questions
Graphic Design- Photoshop Review

Quiz
•
KG - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade