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