Vidyalelo
Ruby Programming · Q16

Data Types and Variables in Ruby

Programming · Ruby Programming · question 16

Q16

What is the method used to check if a variable is defined in Ruby?

A.
.is_defined?
B.
.defined?
Answer
C.
.exist?
D.
.has_value?

Answer: Option B

Solution

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