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