Vidyalelo
Ruby Programming · Q30

Data Types and Variables in Ruby

Programming · Ruby Programming · question 30

Q30

What is the method used to check if a variable is of a specific class in Ruby?

A.
.is_a?
Answer
B.
.type_of
C.
.typeof
D.
.class_of

Answer: Option A

Solution

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