51. What is the result of the expression: 10 / 3 in Ruby?
52. Which method is used to convert a string to lowercase in Ruby?
53. What does the 'return' keyword do in Ruby methods?
54. In Ruby, what is the correct way to define a constant?
55. Which of the following is the correct way to define a range in Ruby?
56. What is the correct syntax for a multiline comment in Ruby?
57. Which method is used to find the length of an array in Ruby?
58. What is the output of the expression: "hello" + "world" in Ruby?
59. In Ruby, what is the keyword used to define a loop that repeats until a condition is true?
60. The following syntax is used for multiline comment.
=begin
iam in a multi line comment
=end
=begin
iam in a multi line comment
=end
Read More Section(Basic Syntax in Ruby)
Each Section contains maximum 100 MCQs question on Basic Syntax in Ruby. To get more questions visit other sections.