Q: In X++, how are array indexes typically referenced?
-
A
Array indexes start at 0, with the first item referenced as [0], the second item as [1], and so on.
-
B
Array indexes start at 1, with the first item referenced as [1], the second item as [2], and so on.
-
C
Array indexes start at -1, with the first item referenced as [-1], the second item as [0], and so on.
-
D
Array indexes can be arbitrary and are not fixed.
B
Answer:
B
Explanation:
Array indexes start at 1, with the first item referenced as [1], the second item as [2], and so on.
Related Topic:
Share Above MCQ