What is the use of .capitalize method?
A. It capitalizes the entire string
B. It capitalize on the first letter of the string
C. It capitalize the strings which are in small case
D. All of the mentioned
Answer: Option B
Related Questions on Basic Syntax in Ruby
What does the 'puts' method do in Ruby?
A. Prints to console
B. Converts to string
C. Finds the length
D. Reads input from user

Join The Discussion