1. | What will be the output of the C#.NET code snippet given below? namespace IndiabixConsoleApplication |
|||||||||
Answer: Option A Explanation: No answer description available for this question. Let us discuss.
|
2. | Which of the following is the correct way to obtain the number of elements present in the array given below? int[] intMyArr = {25, 30, 45, 15, 60}; 1 intMyArr.GetMax; 2 intMyArr.Highest(0); 3 intMyArr.GetUpperBound(0); 4 intMyArr.Length; 5 intMyArr.GetMaxElements(0); |
|||||||||
Answer: Option B Explanation: using System; |
3. | Which of the following is the correct output of the C#.NET code snippet given below? int[][] a = new int[2][]; |
|||||||||
Answer: Option E Explanation: No answer description available for this question. Let us discuss.
|
4. | Which of the following is the correct way to define and initialise an array of 4 integers? 1 int[] a = {25, 30, 40, 5}; 2 int[] a; 3 int[] a; 4 int[] a; 5 int[] a; |
|||||||||
Answer: Option C Explanation: No answer description available for this question. Let us discuss.
|
5. | Which of the following statements is correct about the C#.NET code snippet given below? int[] intMyArr = {11, 3, 5, 9, 4}; |
|||||||||
Answer: Option B Explanation: No answer description available for this question. Let us discuss.
|
6. | Which of the following statements is correct about the array declaration given below? int[][][] intMyArr = new int[2][][]; |
|||||||||
Answer: Option C Explanation: No answer description available for this question. Let us discuss.
|
7. | Which of the following are the correct ways to define an array of 2 rows and 3 columns? 1 int[ , ] a; 2 int[ , ] a; 3 int[ , ] a = {{7, 1, 3}, {2, 9,6 }}; 4 int[ , ] a; 5 int[ , ] a; |
|||||||||
Answer: Option B Explanation: No answer description available for this question. Let us discuss.
|
8. | Which of the following statements are correct about the C#.NET code snippet given below? int[][]intMyArr = new int[2][]; |
|||||||||
Answer: Option C Explanation: No answer description available for this question. Let us discuss.
|