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+ "");
Create a free account and access millions of resources
Similar Resources on Wayground
27 questions
Preguntas de Programación en Java

Quiz
•
10th Grade
23 questions
DAILY EXAM COMPUTER SCIENCE P5 FE 1

Quiz
•
5th Grade - University
27 questions
PowerPoint Layouts & Icons

Quiz
•
9th - 12th Grade
29 questions
1.02 understand digital communication products

Quiz
•
9th Grade - University
25 questions
Graphic Design Final Review

Quiz
•
9th - 12th Grade
25 questions
Adobe Premiere Pro Panels and Tools

Quiz
•
9th - 12th Grade
32 questions
InDesign Certification Prep #2

Quiz
•
9th - 12th Grade
25 questions
Domain 2: Lesson 1 and 2

Quiz
•
12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade