PreAPCS Exposure Java / Exercises 04.04-08 / Date:
Name: / Period:

1. Is the Expo class part of the Java programming language?

2. Which type of method has more parameters: Math methods or graphics methods?

3. Graphics images are not solid pictures, but images created with hundreds or thousands of individual colored dots. What are these individual graphics dots called?

4. What is the minimum requirement of any call to a graphics method?

5. What is the name of the coordinate system that has 4 quadrants and the point (0,0) in the center?

6. List 2 differences between a Cartesian graph and a computer graphics screen.

7. What method is always found in an application?

8. Refer to your answer to the previous question.

Applets do not have this method. What do they have instead?

9. What 2 libraries must be imported in order for graphics applets to work?

10. What does awt stand for?

11. When working with applications, you compile and execute the same file.

When working with an applet, what file is compiled? And what file is executed?

12. In the Expo class, what is the first parameter of any method that does anything graphical?

13. What parameters are required by both drawPixel and drawPoint?

14. What is the difference between drawPixel and drawPoint?

15. Which of these files stored the height and width of the applet window?

16. Applets can be executed in JCreator. Where else can they be executed?

17. Like drawLine, drawRectangle requires that you also specify 2 coordinate points.

What do they represent?

18. What is the mathematical definition of a circle?

19. What is the radius of a circle?

20. What parameters are necessary for drawCircle?

21. How is an oval different from a circle?

22. In a drawOval command, what will the output look like if the horizontal radius is greater than the vertical radius?

23. In a drawOval command, what will the output look like if the horizontal radius is less than the vertical radius?

24. In a drawOval command, what will the output look like if the same value is passed for the horizontal radius and the vertical radius?

25. What is an arc a piece of?

26. The first 5 parameters of drawArc are identical to drawOval.

drawArc adds 2 more parameters at the end. What do these 2 parameters specify?


In questions 27 through 36, you are using the Expo.drawArc method to draw each of the arcs that are displayed. You need to provide the last 2 parameters.

# / Arc to be drawn / Starting Degree Value / Stopping Degree Value
27. /
28. /
29. /
30. /
31. /
32. /
33. /
34. /
35. /
36. /

37. Does the order of the parameters matter ?

38. If you want to draw solid rectangles, circles and ovals what methods would you use?

39. What happens when a small shape is drawn on top of a large shape that is the same color?

40. What is the default drawing color?
41. What Expo method lets you change colors?
42. How many colors are built into the Expo class?
43. If you want to draw PAC-MAN, what method would you use? /

44. What file contains reference information for the Expo class.

Exposure Java 2012, PreAPCS Edition Exercises 04.04-08 Page 1 04-12-12