What is the output of the following?
"Iam learning ruby language".length
"Iam learning ruby language".lengthA. 26
B. 23
C. 20
D. 18
Answer: Option A
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