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
15 questions
Exploring OSI and TCP/IP Models

Quiz
•
12th Grade - University
10 questions
Types of Software

Quiz
•
University
10 questions
System Integration and Arch Exam 2

Quiz
•
University
10 questions
6CSN1

Quiz
•
University
10 questions
Lourdes Amaranta Ayala Gracia

Quiz
•
8th Grade - University
11 questions
Computer hardware and software

Quiz
•
University
10 questions
OSI Model - Network Layer

Quiz
•
9th Grade - Professio...
10 questions
Overview of Java Web Development

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University