Exam 14: Applets and More
Exam 1: Introduction to Computers and Java42 Questions
Exam 2: Java Fundamentals53 Questions
Exam 3: Decision Structures52 Questions
Exam 4: Loops and Files48 Questions
Exam 5: Methods50 Questions
Exam 6: A First Look at Classes49 Questions
Exam 7: A First Look at Gui Applications49 Questions
Exam 8: Arrays and the Arraylist Class52 Questions
Exam 9: A Second Look at Classes and Objects40 Questions
Exam 10: Text Processing and More About Wrapper Classes49 Questions
Exam 11: Inheritance49 Questions
Exam 12: Exceptions and Advanced File Io46 Questions
Exam 13: Advanced Gui Applications46 Questions
Exam 14: Applets and More39 Questions
Exam 15: Recursion34 Questions
Exam 16: Sorting, Searching, and Algorithm Analysis46 Questions
Exam 17: Generics50 Questions
Exam 18: Collections50 Questions
Exam 19: Array-Based Lists20 Questions
Exam 20: Linked Lists36 Questions
Exam 21: Stacks and Queues36 Questions
Exam 22: Binary Trees, Avl Trees, and Priority Queues45 Questions
Select questions type
Applets are important because the can be used to
Free
(Multiple Choice)
4.8/5
(43)
Correct Answer:
A
In the following code,what does getDocumentBase()return? play(getDocumentBase(),"mysound.wav");
Free
(Multiple Choice)
4.9/5
(27)
Correct Answer:
B
If a frame component is 300 pixels wide and 200 pixels high,the upper,right-hand corner has (X,Y)coordinates of
(Multiple Choice)
4.8/5
(30)
Given the following code,how many times per second will the TimerListener event be generated? Timer timer = new Timer(1000,new TimerListener());
(Multiple Choice)
4.8/5
(41)
The delay parameter in the Timer constructor is the amount of time between action events,measured in milliseconds.
(True/False)
4.9/5
(36)
The play method will load and play a sound file once,then release it for garbage collection.The getAudioClip method will load the sound file and may assign the location of the sound file to a variable so it may be invoked many times.
(True/False)
4.9/5
(40)
When you extend an interface,you must implement all the methods defined in the interface.If you are interested in only one or two mouse events,you can extend the _______ class which implements the MouseListener interface,but does not require you to write all the functions in the interface.
(Multiple Choice)
4.8/5
(36)
Given the following code,how many times per second will the TimerListener event be generated? Timer timer = new Timer(500,new TimerListener());
(Multiple Choice)
4.9/5
(42)
One way of viewing the results of the applet which is invoked in the HTML document TestApplet.html,is to enter the following at the command prompt.
(Multiple Choice)
4.8/5
(31)
For all Swing components except JApplet and JFrame,you should override the paintComponent method instead of the paint method.
(True/False)
4.9/5
(44)
The browser creates an instance of the applet class automatically.
(True/False)
4.9/5
(40)
Everything that appears between these tags in an HTML document is the content of the Web page.
(Multiple Choice)
4.9/5
(39)
If you want to make sure that an applet is compatible with all Java-enabled browsers,use Swing components instead of AWT.
(True/False)
4.9/5
(39)
The delay parameter in the Timer constructor is the amount of time between action events,measured in microseconds.
(True/False)
4.8/5
(32)
Showing 1 - 20 of 39
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)