Vidyalelo
Ruby Programming · Q36

Arrays, Hashes and Strings in Ruby

Programming · Ruby Programming · question 36

Q36

What does the `reverse` method do when called on a string in Ruby?

A.
Reverses the order of characters in the string
Answer
B.
Reverses the order of words in the string
C.
Converts the string to lowercase
D.
Converts the string to uppercase

Answer: Option A

Solution

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