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
Correct Answer:
Verified
Q23: Which of the following methods can be
Q24: Which of the following methods can be
Q25: The inspect method can be used to
Q26: In addition to variables, Ruby also permits
Q27: Which of the following methods can be
Q29: Which of the following methods can be
Q30: Which of the following methods allows you
Q31: Which of the following statements is not
Q32: Which of the following methods automatically iterates
Q33: Which of the following options can be
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents