Vidyalelo
Ruby Programming · Q66

Arrays, Hashes and Strings in Ruby

Programming · Ruby Programming · question 66

Q66

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

A.
400
B.
500
C.
Nil
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