| ||||||
| ||||||

Reference Types1. True of false: using a null reference causes the program to crash.True 2.
True or false: When class types are passed by value as method parameters, the
entire object is copied.False True 3.
Creating an array of a class type yields what?False An array of instances of that class 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.An array of object referencesAn array of references of the class type True 5.
Determining if two references refer to the same object should be done using:
False The == operatorThe Equals methodThe Object.ReferenceEquals methodThis material is excerpted from the Programming C# course offered by DevelopMentor. |