Vidyalelo
Ruby Programming · Q52

Arrays, Hashes and Strings in Ruby

Programming · Ruby Programming · question 52

Q52

What will be the output of the following? array = [100, 200, 300, 400, 500] print "array[5]"

A.
array[5].
Answer
B.
500
C.
Nil
D.
None of the mentioned

Answer: Option A

Solution

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