Question 1 of 25
Hints left: 3
Q1
Which of the following is the correct way to define a range in Ruby?
Q2
In Ruby, what is the keyword used to define a constant?
Q3
What is the correct way to declare a variable in Ruby without assigning a value?
Q4
What is the result of the expression: 10 % 3 in Ruby?
Q5
Which method is used to convert a string to uppercase in Ruby?
Q6
What is the data type of the value "Hello, World" in Ruby?
Q7
What is the method used to check if a string contains a specific substring in Ruby?
Q8
What is the output of the expression: "10" * 3 in Ruby?
Q9
What is the method used to check if a variable is numeric in Ruby?
Q10
Which method is used to convert a string to an array of characters in Ruby?
Q11
What is the method used to convert a string to lowercase in Ruby?
Q12
What is the correct syntax to declare and initialize a variable in Ruby?
Q13
What is the correct way to declare and initialize an array in Ruby?
Q14
Which of the following is a valid way to declare a variable in Ruby?
Q15
What is the correct way to concatenate two strings in Ruby?
Q16
What is the output of the expression: "5".to_i + 2 in Ruby?
Q17
Which of the following is the correct way to declare a variable in Ruby with a default value?
Q18
What is the correct syntax for a multiline comment in Ruby?
Q19
What is the method used to check if a variable is of a specific class in Ruby?
Q20
Which of the following is the correct way to define a variable in Ruby?
Q21
What does the 'chomp' method do in Ruby?
Q22
Which method is used to find the length of an array in Ruby?
Q23
In Ruby, what is the default file extension for Ruby files?
Q24
What does the 'return' keyword do in Ruby methods?
Q25
What is the method used to check if a variable is empty in Ruby?