Vidyalelo
Ruby Programming · Q31

Data Types and Variables in Ruby

Programming · Ruby Programming · question 31

Q31

Which of the following is the correct way to define a variable in Ruby?

A.
var_name = value
Answer
B.
var var_name = value
C.
name = value
D.
variable name = value

Answer: Option A

Solution

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