GUI Quiz

Quiz
•
Computers
•
University
•
Medium
Christine Pitos
Used 52+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
Year 2, Unit 5.1, 5.2, 5.3

Quiz
•
1st Grade - University
10 questions
APIs

Quiz
•
University - Professi...
14 questions
Operating System, Utility, and Application Software - Year 7

Quiz
•
7th Grade - University
15 questions
Quiz 2 - Android UI Layout and Controls

Quiz
•
University
12 questions
Android App Development

Quiz
•
University
15 questions
Communication Networks- Quiz

Quiz
•
1st Grade - University
10 questions
Office 365

Quiz
•
KG - University
5 questions
XAML containers

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University