Vidyalelo
Ruby Programming · Q73

Arrays, Hashes and Strings in Ruby

Programming · Ruby Programming · question 73

Q73

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
Answer
D.
None of the mentioned

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board