Which method is used to find the length of an array in Ruby?
A. .size
B. .length
C. .count
D. .length_of
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