Question 1 of 25
Hints left: 3
Q1
Which symbol is used to concatenate strings in Ruby?
Q2
What is the correct way to define a conditional statement in Ruby?
Q3
What is the correct syntax for printing a message to the console?
Q4
In Ruby, what is the keyword used to define a method?
Q5
Which of the following is NOT a valid data type in Ruby?
Q6
Which of these operators is used for string concatenation?
Q7
What does the 'gets' method do in Ruby?
Q8
Which of the following is the correct way to start a single-line comment in Ruby?
Q9
Which of the following is the correct way to define a constant in Ruby?
Q10
How do you add two numbers in Ruby?
Q11
What does the 'print' method do in Ruby?
Q12
What are the different types of comments in Ruby?
Q13
What does the 'puts' method do in Ruby?
Q14
Which of the following is a valid variable name in Ruby?
Q15
What is the correct way to declare a variable in Ruby?
Q16
In Ruby, what is the keyword used to define a class?
Q17
What is the correct syntax for creating a hash in Ruby?
Q18
How do you call a method in Ruby?
Q19
What symbol is used to denote the end of a statement in Ruby?
Q20
What symbol is used to denote comments in Ruby?
Q21
How do you access a value from a hash in Ruby?
Q22
What is the correct way to define a method in Ruby?
Q23
Which method is used to convert a string to uppercase in Ruby?
Q24
What is the default file extension for Ruby files?
Q25
What is the correct syntax for defining a variable in Ruby?