Examveda

What is the output of the given code?
a=["hey", "ruby", "language"]
b=[1, 2, 3]
puts b[1]
puts a[2]

A. 3 ruby

B. Error

C. 2
language

D. None of the mentioned

Answer: Option C


Join The Discussion

Related Questions on Arrays, Hashes and Strings in Ruby