Vidyalelo
Ruby Programming · Q55

Basic Syntax in Ruby

Programming · Ruby Programming · question 55

Q55

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