Vidyalelo
Ruby Programming · Q22

Arrays, Hashes and Strings in Ruby

Programming · Ruby Programming · question 22

Q22

In Ruby, what does the `capitalize` method do when used with strings?

A.
Converts the first character to uppercase
Answer
B.
Converts the entire string to uppercase
C.
Converts the first character to lowercase
D.
Converts the entire string to lowercase

Answer: Option A

Solution

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