Explanation: Begin is used to declares code to be called before the program is run.
Dear candidates you will find MCQ questions of Ruby here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
Explanation: Begin is used to declares code to be called before the program is run.
Explanation: The hash character (#) is used to give comment in ruby.
Explanation: This block comment conceals several lines from the interpreter with =begin/=end.
Explanation: All of the above is a Reserved Words in Ruby.
Explanation: Ruby supports all the features because it is a object oriented programming language.
Explanation: Ruby2.0 has several new added features and it is much stable than its older versions.
Explanation: Most of the syntax of perl language matches with that of Ruby's.
Explanation: Ruby files must be saved with the extension .rb.
Explanation: floating point literals are valid only when they have digits on both the sides of decimal point.
Explanation: Ruby 2.7.1 version release date 31-03-2020.