Vidyalelo
Ruby Programming · Q7

Data Types and Variables in Ruby

Programming · Ruby Programming · question 7

Q7

What is the method used to convert a string to an integer in Ruby?

A.
.to_i
Answer
B.
.to_int
C.
.convert_int
D.
.parse_int

Answer: Option A

Solution

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