Q. What will be the output of the given ruby code?
Code:
arr = [1, 2, 3, 4] print arr
β
Correct Answer: (A)
[1, 2, 3, 4]
Explanation: A variable arr is declared and [1, 2, 3, 4] is stored in that variable.