Which one of the following statements is correct?
A. Array elements can be of integer type only.
B. The rank of an Array is the total number of elements it can contain.
C. The length of an Array is the number of dimensions in the Array.
D. The default value of numeric array elements is zero.
E. The Array elements are guaranteed to be sorted.
Answers
Answered by
3
Which one of the following statements is correct?
A. Array elements can be of integer type only.
B. The rank of an Array is the total number of elements it can contain.
C. The length of an Array is the number of dimensions in the Array.
D. The default value of numeric array elements is zero.
E. The Array elements are guaranteed to be sorted.
Answer is The default value of numeric array elements is zero
Option is (D)
The default value of a variable depends on the type of the variable and is determined as follows:
•For a variable of a value-type, the default value is the same as the value computed by the value-type’s default constructor.
•For a variable of a reference-type, the default value is null.
Hope it helps
A. Array elements can be of integer type only.
B. The rank of an Array is the total number of elements it can contain.
C. The length of an Array is the number of dimensions in the Array.
D. The default value of numeric array elements is zero.
E. The Array elements are guaranteed to be sorted.
Answer is The default value of numeric array elements is zero
Option is (D)
The default value of a variable depends on the type of the variable and is determined as follows:
•For a variable of a value-type, the default value is the same as the value computed by the value-type’s default constructor.
•For a variable of a reference-type, the default value is null.
Hope it helps
Answered by
10
Answer:
Option D is the correct Answer.
D- The default value of numeric array elements is zero.
Similar questions
Hindi,
8 months ago
Science,
8 months ago
Math,
8 months ago
Math,
1 year ago
Social Sciences,
1 year ago