Which of the following is a valid variable name in Ruby?
A. my_variable
B. 123variable
C. _variable
D. variable-1
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