Vidyalelo
Ruby Programming · Q35

Data Types and Variables in Ruby

Programming · Ruby Programming · question 35

Q35

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

A.
(1..10)
Answer
B.
[1 to 10]
C.
{1..10}
D.
<1,10>

Answer: Option A

Solution

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