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 image can be used to do double buffering. Explain this. (What are off-screen images? How are they used? Why are they important? What does this have to do with animation?)

Question 3: One of the main classes in Swing is the JComponent 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 JCheckBox and how is it used?

Question 7: What is a thread 

Question 8: Explain how Timers are used to do animation.

Question 9: Menus can contain sub-menus. What does this mean, and how are sub-menus handled in Java?

Question 10: What is the purpose of the JFrame class?

[ Answers | Chapter Index | Main Index ]