L. P. with Microsoft C# - Level 3-Quiz-1
- An array is called a sequence of elements that are all of the same basic data type.
- You have an array, created using C#, and you need to know the position of the third element of the array. The third element is in position 2. This is because All arrays in C# are Base 0.
- You are declaring an array of integers, and calling it MyArray. the correct syntax for this declaration is:
int[] MyArray;
- You want to use a method to remove all of the contents of an array and recapture the array space in memory. you would use Clear method to do this.
- You want to allow an object to be shared by multiple threads, and to be accessible using object locks. Synchronized is the term to describe this kind of object.
- You want to declare a three dimensional rectangular array of integers. What would be the proper syntax for the beginning of that declaration?
int [,,];
- An array of arrays is the correct definition of a ragged array.
Permalink |
Comments (0) | Hits: 1106 | Time: 12:01:51