
Quiz 2 Java GUI
Authored by Angeline pang
Computers
University
10 Questions
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose that you create an application in which you instantiate a JFrame named frame1 and a JLabel named label1. Which of the following statements within the application adds label1 to frame1?
label1.add(frame1);
frame1.add(label1);
this.add(label1);
two of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The package used for using graphical classes is
awt
util
lang
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The basic container for java graphical programs is
Panel
Button
Frame
4.
MULTIPLE CHOICE QUESTION
30 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+ "");
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What object type handles Java's layouts?
Layout Manager
Layout Scheduler
Layout Operator
Layout Director
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of one of the following package does not contain GUI components?
java.applet
java.awt
javax.swing
java.io
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is a GUI component (such as a button) placed into a JFrame?
insert( Component c )
add( Component c)
draw( Component c )
put( Component c )
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Dasar Desain Grafis
Quiz
•
12th Grade - University
10 questions
Google Sites
Quiz
•
University
10 questions
Herencia y Paquetes
Quiz
•
University
10 questions
Unit 24 - Java Basics
Quiz
•
University
12 questions
IoT - Internet das Coisas
Quiz
•
University
10 questions
Linux Essentials
Quiz
•
University
11 questions
Access
Quiz
•
10th Grade - University
15 questions
tik kelas 7
Quiz
•
1st Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University