Q. What is the output of the given code?
a=["hey", "ruby", "language"]
b=[1, 2, 3]
puts b[1]
puts a[2]
a=["hey", "ruby", "language"]
b=[1, 2, 3]
puts b[1]
puts a[2]
β
Correct Answer: (C)
2
language