Ruby permits the specification of a negative integer value when referring to array values. An index value of -2 would refer to which item in an array?
A. The first item stored in the array
B. The second item stored in the array
C. The last item stored in the array
D. The second to last item stored in the array
Answer: D
Computer Science & Information Technology
You might also like to view...
The Run button for executing a query is found in the ________ group under the Design tab
A) Query Type B) Show/Hide C) Query Setup D) Results
Computer Science & Information Technology
Using a O(n3) algorithm, if we double the number of elements in the array, how many times longer will it take to process?
What will be an ideal response?
Computer Science & Information Technology