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

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
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
SIMKOM
Quiz
•
12th Grade - Professi...
12 questions
R variable Data Type and Flow Control Quiz
Quiz
•
University
15 questions
Introduction to Django Framework Quiz
Quiz
•
University
10 questions
แนะนำการใช้คำสั่ง word
Quiz
•
University
10 questions
CC 105 - Quiz 2 FINAL TERM
Quiz
•
University
15 questions
LATIHAN SOAL PEMROGRAMAN
Quiz
•
9th Grade - University
10 questions
INTRODUCCION A LA PROGRAMACION
Quiz
•
6th Grade - University
10 questions
Hyrje në SO
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade