Quiz on Chapter 13

This page contains questions on Chapter 13 of
Introduction to Programming Using Java.
You should be able to answer these questions after studying that chapter.
Sample answers to these questions can be found here.

Question 1:

Describe the object that is created by the following statement, and give
an example of how it might be used in a program:

Suppose that the class that you are writing has an instance method
doOpen() (with no parameters) that is meant to be used to open
a file selected by the user. Write a code segment that creates an
Action that represents the action of opening
a file. Then show how to create a button and a menu item from that
action.