20:38 Back adjava300 18-Nov-2022 11-46-... 20. What is the name for a method that responds to events? A. A container method. B. A snoop method. C. A listener method. D. An application method. 21. Fill in the blanks so that this program displays a JFrame: import java.awt.*; public class microGUI { public static void main (String[] args) { _0; } JFrame frm = new frm. frm. (150, 100); _(true); A. Form, setVisible, setOn B. JFrame, setSize, setVisible C. Frame, setVisible, setSize D. Window, setSize, paint 22. Which of the following sets A. frm.setSize( 300, 200); B. frm.setSize( 200, 300); frm.paint( 300, 200); C. D. frm.setVisible( 300, 200); to 300 pixels wide by 200 high? LTE 23. How many different ways can this key word be used in Java? A. 1 B. 2 C. 3 D. Many 24. What reserved word is used to distinguish the instance variables of an object from identically named parameters of a constructor? A. this B. that C. mine D. main 25. What is the class that applets are based on? A. applet B. JApplet C. Apple D. AWT 26. Can the source code for your applet be compiled by the usual javac compiler? A. No---because applets have no main() B. No---the web browser compiles the code. C. Yes---an applet is just another class as far as the compiler is concerned. a

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
20:38
Back adjava300 18-Nov-2022 11-46-...
20. What is the name for a method that responds to events?
A. A container method.
B. A snoop method.
C. A listener method.
D. An application method.
21. Fill in the blanks so that this program displays a JFrame:
import java.awt.*;
public class microGUI
{
public static void main (String[] args)
{
_0;
}
JFrame frm = new
frm.
frm.
(150, 100);
_(true);
A. Form, setVisible, setOn
B. JFrame, setSize, setVisible
C. Frame, setVisible, setSize
D. Window, setSize, paint
22. Which of the following sets
A. frm.setSize( 300, 200);
B. frm.setSize( 200, 300);
frm.paint( 300, 200);
C.
D.
frm.setVisible( 300, 200);
to 300 pixels wide by 200 high?
LTE
23. How many different ways can this key word be used in Java?
A. 1
B. 2
C. 3
D. Many
24. What reserved word is used to distinguish the instance variables of an object from
identically named parameters of a constructor?
A. this
B. that
C. mine
D. main
25. What is the class that applets are based on?
A. applet
B. JApplet
C. Apple
D. AWT
26. Can the source code for your applet be compiled by the usual javac compiler?
A. No---because applets have no main()
B. No---the web browser compiles the code.
C. Yes---an applet is just another class as far as the compiler is concerned.
a
Transcribed Image Text:20:38 Back adjava300 18-Nov-2022 11-46-... 20. What is the name for a method that responds to events? A. A container method. B. A snoop method. C. A listener method. D. An application method. 21. Fill in the blanks so that this program displays a JFrame: import java.awt.*; public class microGUI { public static void main (String[] args) { _0; } JFrame frm = new frm. frm. (150, 100); _(true); A. Form, setVisible, setOn B. JFrame, setSize, setVisible C. Frame, setVisible, setSize D. Window, setSize, paint 22. Which of the following sets A. frm.setSize( 300, 200); B. frm.setSize( 200, 300); frm.paint( 300, 200); C. D. frm.setVisible( 300, 200); to 300 pixels wide by 200 high? LTE 23. How many different ways can this key word be used in Java? A. 1 B. 2 C. 3 D. Many 24. What reserved word is used to distinguish the instance variables of an object from identically named parameters of a constructor? A. this B. that C. mine D. main 25. What is the class that applets are based on? A. applet B. JApplet C. Apple D. AWT 26. Can the source code for your applet be compiled by the usual javac compiler? A. No---because applets have no main() B. No---the web browser compiles the code. C. Yes---an applet is just another class as far as the compiler is concerned. a
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Random access
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education