Vidyalelo
Ruby Programming · Q45

Arrays, Hashes and Strings in Ruby

Programming · Ruby Programming · question 45

Q45

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

A.
400
B.
500
Answer
C.
Nil
D.
None of the mentioned

Answer: Option B

Solution

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