Question 1 Java GUI classes fall into three catagories, Container Classes, Compo
ID: 3576589 • Letter: Q
Question
Question 1
Java GUI classes fall into three catagories, Container Classes, Component Classes and Helper Classes.
True
False
2 points
Question 2
The following code is correct for creating an OK button:
JButton jbrOK = new JButton(“OK”);
True
False
2 points
Question 3
An Event is a signal to the program that something has happened, triggered by an external action such as a user click a button, but never triggered by something internal to the computer system.
True
False
2 points
Question 4
A source object is what generates or fires an event, e.g. a JButton.
True
False
2 points
Question 5
The way event driven programming works in Java is that a listener object fires an event, and a source object handles the event.
True
False
2 points
Question 6
A Font or a Color class falls into the ____________ catagory.
Container Class
Componet Class
Helper Class
Scoobie Class
2 points
Question 7
Java’s container hold components. You give a container a __________ to arrange those components automatically.
Component Manager
Layout Manager
Fund Manager
Container Manager
2 points
Question 8
______________ is the name of a Layout Manager
FlowLayout
GridLayout
BorderLayout
All the above
None of the above
2 points
Question 9
Java uses a ____________ for event handling.
scale model
JDK model
delegation-based model
RGB Model
2 points
Question 10
Listener classes are normally implemented using __________________
Ordinary classes
No classes at all
Inner classes
anonymous inner classes
Container Class
Componet Class
Helper Class
Scoobie Class
Explanation / Answer
Question 1:
Answer: True
Question 2:
Answer:True
Question 3:
Answer: True
Question 4:
Answer: True
Question 5:
Answer:False
Source object fires an event and listener object will handle it
Question 6:
Answer:Componet Class
Question 7:
Answer:Layout Manager
Question 8:
Answer:All the above
Question 9:
Answer:delegation-based model
Question 10:
Answer:Inner classes
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.