Home / MCQ Bank / Computer
Computer Basic Syntax In Ruby

How do you define a range in Ruby?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • range = start..end

Related Computer Questions

Which of the following property is used to control the text direction, much like the dir attribute for (X)HTML tags? Which of the following escape sequence represents tab? What does the built-in function bool() do in Python? What is the output of the following code: import re result = re.findall(r'bw+b', 'Hello, world!') print(result) Which metacharacter is used to specify grouping in a regular expression in Ruby?