Arrays

Q1:
Which of the following statements are correct about the C#.NET code snippet given below?
int[ , ] intMyArr = {{7, 1, 3}, {2, 9, 6}};
  1. intMyArr represents rectangular array of 2 rows and 3 columns.
  2. intMyArr.GetUpperBound(1) will yield 2.
  3. intMyArr.Length will yield 24.
  4. intMyArr represents 1-D array of 5 integers.
  5. intMyArr.GetUpperBound(0) will yield 2.

A 1, 2

B 2, 3

C 2, 5

D 1, 4

E 3, 4

ANS:A - 1, 2

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.