GUI Quiz
Quiz
•
Computers
•
University
•
Medium
Christine Pitos
Used 52+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A JFrame is a descendant of each of the following classes except the ________class.
Component
Jar
Container
Window
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The statement JFrame myFrame = new JFrame(); creates a JFrame that is _______.
invisible and has no title
invisible and has a title
visible and has no title
visible and has a title
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When a user closes a JFrame, the default behavior is for ______.
the JFrame to close and the application to keep running
the JFrame to be hidden and the application to keep running
the JFrame to close and the application to exit
nothing to happen
4.
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
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A JFrame contains a JButton named button1 that should execute an actionPerformed() method when clicked. Which statement is needed in the JFrame class?
addActionListener(this);
addActionListener(button1);
button1.addActionListener(this);
this.addActionListener(button1);
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Events in Java are objects that are created by Event Sources (such as JButtons, JPanels, and other Components).
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The three software parts of a GUI program are:
Windows, Buttons, Mice
GUI Components, Graphics, Code
GUI Components, Event Listeners, Application Code
Frames, Code, Events
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
12 questions
QUIZ SAD TOPIC 1_Introduction to Information System (SAD)
Quiz
•
University
15 questions
Router
Quiz
•
University
10 questions
Lesson 2 - Passing Data to Subsystems
Quiz
•
University
15 questions
PICMAKER
Quiz
•
University
10 questions
QUIZ #1 INTRO TO COMPUTING
Quiz
•
University
12 questions
Questionario sobre certificações
Quiz
•
University
10 questions
Interaksi manusia dan komputer
Quiz
•
University
11 questions
Java Quizz 2
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
