> ### Quiz Questions
> For Chapter 7

> THIS PAGE CONTAINS A SAMPLE quiz on material from Chapter 7 of this on-line Java textbook. You should be able to answer these questions after studying that chapter. Sample answers to all the quiz questions can be found here.

> Question 1: What is the `FontMetrics` class used for?

> Question 2: An off-screen canvas can be used to do double buffering. Explain this. (What are off-screen canvases? How are they used? Why are they important? What does this have to do with animation?)

> Question 3: One of the main classes in the AWT is the `Component` class. What is meant by a component? What are some examples?

> Question 4: What is the function of a LayoutManager in Java?

> Question 5: What does it mean to use a `null` layout manager, and why would you want to do so?

> Question 6: What is a `Checkbox` and how is it used?

> Question 7: What is a thread?

> Question 8: If you want to program an applet to show an animation, you have to create a thread. Why?

> Question 9: What is meant by a non-static nested class? What are the advantages of using one?

> Question 10: What is the purpose of the `Frame` class?

[ Answers | Chapter Index | Main Index ]