L. P. with Microsoft C# - Level 3-Quiz-1

  1. An array is  called a sequence of elements that are all of the same basic data type.
  2. 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.
  3. You are declaring an array of integers, and calling it MyArray.  the correct syntax for this declaration is:

    int[] MyArray;

  4. 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.
  5. 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.
  6. You want to declare a three dimensional rectangular array of integers. What would be the proper syntax for the beginning of that declaration?

    int [,,];

  7. An array of arrays is the correct definition of a ragged array.
Permalink | Comments (0) | Hits: 1106 | Time: 12:01:51
Learning Programming with Microsoft C# - Level 3-1.4
Learning Programming with Microsoft C# - Level 3-2.1
All Comments

 No Data Now...

Post Your Comment
^ ^

Top