Vidyalelo
Ruby Programming · Q4

Arrays, Hashes and Strings in Ruby

Programming · Ruby Programming · question 4

Q4

What is the output of "hello".reverse in Ruby?

A.
"olleh"
Answer
B.
"hello"
C.
"loleh"
D.
"hell"

Answer: Option A

Solution

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