Vidyalelo
Ruby Programming · Q24

Data Types and Variables in Ruby

Programming · Ruby Programming · question 24

Q24

What is the correct way to declare a variable in Ruby without assigning a value?

A.
var_name
Answer
B.
var_name = nil
C.
var_name = ""
D.
None of the above

Answer: Option A

Solution

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