9. | Which of the following statements are correct about arrays used in C#.NET? 1 Arrays can be rectangular or jagged. 2 Rectangular arrays have similar rows stored in adjacent memory locations. 3 Jagged arrays do not have an access to the methods of System.Array Class. 4 Rectangular arrays do not have an access to the methods of System.Array Class. 5 Jagged arrays have dissimilar rows stored in non-adjacent memory locations. |
|||||||||
Answer: Option D Explanation: No answer description available for this question. Let us discuss.
|
10. | Which of the following is the correct output of the C#.NET code snippet given below? int[ , , ] a = new int[ 3, 2, 3 ]; |
|||||||||
Answer: Option C Explanation: No answer description available for this question. Let us discuss.
|
11. | How will you complete the foreach loop in the C#.NET code snippet given below such that it correctly prints all elements of the array a? int[][]a = new int[2][]; |
|||||||||
Answer: Option D Explanation: No answer description available for this question. Let us discuss.
|
12. | If a is an array of 5 integers then which of the following is the correct way to increase its size to 10 elements?
|
|||||||||
Answer: Option D Explanation: No answer description available for this question. Let us discuss.
|
13. | Which one of the following statements is correct?
|
|||||||||
Answer: Option D Explanation: No answer description available for this question. Let us discuss.
|
14. | Which of the following statements are correct about the C#.NET code snippet given below? int[] a = {11, 3, 5, 9, 4}; 1 The array elements are created on the stack. 2 Refernce a is created on the stack. 3 The array elements are created on the heap. 4 On declaring the array a new array class is created which is derived from System.Array Class. 5 Whether the array elements are stored in the stack or heap depends upon the size of the array. |
|||||||||
Answer: Option B Explanation: No answer description available for this question. Let us discuss.
|
15. | Which of the following statements are correct about the C#.NET code snippet given below? 1 int[ , ] intMyArr = {{7, 1, 3}, {2, 9, 6}}; 2 intMyArr represents rectangular array of 2 rows and 3 columns. 3 intMyArr.GetUpperBound(1) will yield 2. 4 intMyArr.Length will yield 24. 5 intMyArr.GetUpperBound(0) will yield 2. |
|||||||||
Answer: Option A Explanation: No answer description available for this question. Let us discuss.
|