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