Q. What is the output of the given ruby code?
Code:
array = [100, 200, 300, 400, 500] print array[5]
β
Correct Answer: (C)
Nil
Explanation: Array's index start from 0 so array[5] will give nothing.