Vidyalelo
Ruby Programming · Q6

Basic Syntax in Ruby

Programming · Ruby Programming · question 6

Q6

What does the 'gets' method do in Ruby?

A.
Prints to console
B.
Converts to string
C.
Reads input from user
Answer
D.
Finds the length

Answer: Option C

Solution

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