Question 1 of 25
Hints left: 3
Q1
What is the data type of the value 3.14 in Ruby?
Q2
The following is the correct way to use multiline comment. = begin # comment = end
Q3
Which of the following is NOT a valid data type in Ruby?
Q4
What is the output of the expression: "5" + "2" in Ruby?
Q5
Which method is used to check if a variable is nil in Ruby?
Q6
What is the data type of the value true in Ruby?
Q7
What is the method used to check if a variable is defined in Ruby?
Q8
For getting an input from the user which method is used?
Q9
What is the method used to convert a string to a float in Ruby?
Q10
What is the method used to convert a value to string in Ruby?
Q11
What is the method used to convert a string to an integer in Ruby?
Q12
Which of the following languages syntax matches with the Ruby's syntax?
Q13
What is the method used to check the data type of a variable in Ruby?
Q14
What is the extension used for saving the ruby file?
Q15
What will be the output of the following? "Eric".irreverse
Q16
What does the 'nil' value represent in Ruby?
Q17
Which of the following is a valid variable name in Ruby?
Q18
What is the sequence of ruby strings?
Q19
What does the .upcase method do?
Q20
Why is gets not preferred instead of gets.chomp?
Q21
What is the default value of a variable in Ruby if not initialized?
Q22
Which symbol is used to declare a variable in Ruby?
Q23
Which of the following is the correct way to declare a constant in Ruby?
Q24
Why can not we use quotation marks (' or ") with boolean?
Q25
What is the result of the expression: 5 / 2 in Ruby?