
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
10 questions
OOPJ #1
Quiz
•
University
10 questions
FST Class 2023- Quiz 1
Quiz
•
University
10 questions
На сколько ты знаешь C#
Quiz
•
University
10 questions
Java Control Flow statements
Quiz
•
University
15 questions
Diagramas de Flujo 2
Quiz
•
5th Grade - University
10 questions
Pemrograman Android KD 3.28/4.28
Quiz
•
1st Grade - Professio...
14 questions
El Teclado
Quiz
•
2nd Grade - University
10 questions
P1_APLab2Quiz_B3B4
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade