Which of the following is a valid variable name in Ruby?
A. 123variable
B. _variable
C. -variable
D. variable!
Answer: Option B
Related Questions on Data Types and Variables in Ruby
What is the default value of a variable in Ruby if not initialized?
A. 0
B. nil
C. "undefined"
D. FALSE
Join The Discussion