Chapter 9 Review Questions
1.	An object is a(n) ________________________ of a class.
a.	instantiation
b.	institution
c.	child
d.	relative
2.	Most methods in a class are created with the ________________________ modifier.
a.	public
b.	private
c.	new
d.	protected
3.	To allocate memory for an object instantiation, you must use the ________________________ operator.
a.	mem
b.	alloc
c.	instant
d.	new
4.	Assume that you have created a class named MyClass. The header of the MyClass constructor can be ________________________.
a.	public MyClass()
b.	public MyClass(double d)
c.	Either of these can be the constructor header.
d.	Neither of these can be the constructor header.
5.	Assume that you have created a class named DemoCar. Within the Main() method of this class, you instantiate a Car object named myCar and the following statement executes correctly:
WriteLine("The Car gets {0} miles per gallon", myCar.ComputeMpg());
Within the Car class, the ComputeMpg() method can be ________________________.
a.	public and static
b.	public and nonstatic
c.	private and static
d.	private and nonstatic
6.	A this reference is ________________________.
a.	implicitly passed to nonstatic methods
b.	implicitly passed to static methods
c.	explicitly passed to nonstatic methods
d.	explicitly passed to static methods
7.	A class’s default constructor ________________________.
a.	sets numeric fields to 0
b.	is parameterless
c.	is both of these
d.	is none of these
8.	Assume that you have created a class named Chair with a constructor defined as Chair(int height). Which of the following overloaded constructors could coexist with the Chair constructor without ambiguity?
a.	Chair(int legs)
b.	Chair(int height, int legs)
c.	Both of these
d.	None of these
9.	You explicitly call a destructor ________________________.
a.	when you are finished using an object
b.	when an object goes out of scope
c.	when a class is destroyed
d.	You cannot explicitly call a destructor.
10.	In a program that creates five object instances of a class, the constructor executes ____________ time(s) and the destructor executes ________________________ time(s).
a.	one; one
b.	one; five
c.	five; one
d.	five; five