| # | Question |
| 1 | drawString() Which class does the drawString() method reside in? (Choose one) A. java.applet.Applet |
| 2 | Applet Which statements are true about Applets? (Choose all that apply) A. The browser that loads the Applet will instantiate the class. |
| 3 | Which statements are correct
about the sample code below? (Choose all that apply) import java.applet.Applet; A. Since setVisible(true) was not
called you will see a blank screen. |
| 4 | drawString() Which statements are correct about the sample code?
public void paint(java.awt.Graphics g) { A. Will not compile because drawString() is a method in
java.applet.Applet. |
| 5 | appletviewer Which statements are correct about the appletviewer? A. "appletviewer" is a program included in the JDK for
programmers to view applets in html files. |
| 6 | Applet Tag Which statements are correct about the sample html code. <applet code="HelloWorld.class" codebase="." width="275" height="55"> A. The class name should be the value of the codebase property, not
code. |