Ch. 1,2,3,9 Feb. 22, 2000 (on pages in D&D text) 1. Name 3 primitive data types. (103) 2. Name 3 class types. (29,507) 3. Name 2 wrapper classes. (394) 4. Evaluate each: 9/5 (39,41) 5/9 9%5 9.0/5.0 5. Give a statement to put your name on an applet. (26) 6. Give a statement to put your name in the status bar. (31) 7. What DOS command will compile the file Heart.java? (16) 8. What does javac produce? (27) 9. What is java? (16) 10. What line must an application contain? (82) 11. What is the execution difference between an applet and an application? (23,82) 12. Name 2 methods from the Applet class. (34,206) 13. How many times is the init method executed? (34,206) 14. If your applet has a TextField component, where would you instantiate that TextField? (31) 15. What keyword is used to instantiate objects? (35,502) 16. An applet has width 200 and height 100. Show what the following statement does. (491) g.drawRect(50, 10, 100, 30); 17. One kind of control is called sequential. What are 2 other kinds of control statements? (70) 18. Write a statement that will add 5 to variable age if age is less than 20 and greater than 10. int age; (73,97,144) 19. What is javadoc? 20. What does javadoc produce? 21. Documentation comments for javadoc must begin with what? and end with what? 22. Provide a loop that will write the numbers from 10 to 50 on the DOS screen. (127) 23-25. Your source code contains the line public class Quiz extends Applet implements ActionListener { 23. What is the superclass? What is the subclass? (25) 24. What is the interface? (33) 25. Due to "implements ActionListener" what method must class Quiz provide? (33)