What is the purpose of the line of code:
import java.awt.*;
Java Swing/AWT Graphics
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Elizabeth Cavazos
Used 318+ 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+ "");
22 questions
RoboMind Chalengge
Quiz
•
9th Grade
25 questions
Test Operatii Word+Formule Word
Quiz
•
1st - 10th Grade
25 questions
Microsoft Word Unit 14 Test Review
Quiz
•
9th - 12th Grade
30 questions
USG_XI RPL 1_PBO_2024
Quiz
•
11th Grade
30 questions
Ulangan Harian Pemrograman Berorientasi Objek (PBO)
Quiz
•
12th Grade
25 questions
Pemrograman Berorientasi Objek dengan Java Netbeans
Quiz
•
12th Grade
25 questions
Blender Fundamentals Quiz
Quiz
•
9th - 12th Grade
23 questions
MS WORD Lesson 2
Quiz
•
9th - 12th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade
25 questions
Spanish preterite verbs (irregular/changed)
Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)
Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance
Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1
Quiz
•
9th - 12th Grade
26 questions
June 19th
Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope
Quiz
•
10th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade
27 questions
STAAR English 1 Review
Quiz
•
9th Grade