Question: what is the relationship between length and the valid indexes of an array?
Answer: The index has a direct relationship with size. Index (or subscript) determines the size of the array and references the position of each element in the array in order to manipulate the element's data. Without getting too technical here, the size is the total number of elements stored in the array.