Answer the following statements true (T) or false (F)
1) A single array can store values of many different types.
2) An array index should normally be of type float.
3) An individual array element that’s passed to a method and modified in that method will contain the modified value when the called method completes execution.
4) Command-line arguments are separated by commas.
5) Auto-implemented properties cannot be initialized in their declarations.
1) False. An array can store only values of the same type.
2) False. An array index must be an integer or an integer expression.
3) For individual value-type elements of an array: False. A called method receives and
manipulates a copy of the value of such an element, so modifications do not affect
the original value. If the reference of an array is passed to a method, however, modifications to the array elements made in the called method are indeed reflected in the original. For individual elements of a reference type: True. A called method receives a copy of the reference of such an element, and changes to the referenced object will be reflected in the original array element.
4) False. Command-line arguments are separated by whitespace.
5) False. As of C# 6, you can use auto-property initialization in auto-implemented
property declarations.
You might also like to view...
Name the organizational principle at work in each of the following examples:
_____ is the amount of money being loaned.?
A. ?Principal B. ?Down payment C. ?Interest D. ?Stake
A ____________________ multimedia project allows users to sit back and watch it just as they watch a movie or the television.
Fill in the blank(s) with the appropriate word(s).
During which phase of an investigation do you make your first entries into a chain of custody log?
a. Examination b. Acquisition c. Identification/Assessment d. Analysis e. Reporting