Q. What will be the output of the given ruby code?
Code:digits = Array(0..9)
num = digits.at(6)
puts #{num}
β
Correct Answer: (B)
6
Explanation: This will produce the following result : 6