61. Which of the following features does the 2.0 version of ruby supports?
62. Which of the following is the valid string method?
63. The .length method is used to check number of characters.
64. What is the size of an integer data type in ruby?
65. What is the output of the given code?
Ans=Ruby
puts "#{Ans} is an oop language"
puts "It is very efficient langauge"
puts "#{expr} is used on rails platform"
Ans=Ruby
puts "#{Ans} is an oop language"
puts "It is very efficient langauge"
puts "#{expr} is used on rails platform"
66. This the right way to comment a single line.
“Ruby”.length # I’m a single line comment!
“Ruby”.length # I’m a single line comment!
67. Which of the following is supported by Ruby?
68. Space between 2+5 or 2 + 5 is valid but =begin and = begin is not valid.
69. first_name,Last_name=gets.chomp,gets.chomp is the correct way to get the input from the user.
70. Ruby can be used for developing internet and intranet applications.
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.