developmentor - a developer services company				  
				      
   Modules

Reference Types


1. True of false: using a null reference causes the program to crash.
True
False

2. True or false: When class types are passed by value as method parameters, the entire object is copied.
True
False

3. Creating an array of a class type yields what?
An array of instances of that class
An array of object references
An array of references of the class type

4. True or false: it is considered good style to explicitly invoke the garbage collector whenever an object allocated on the heap goes out of scope.
True
False

5. Determining if two references refer to the same object should be done using:
The == operator
The Equals method
The Object.ReferenceEquals method

This material is excerpted from the Programming C# course offered by DevelopMentor.