Home / Programming MCQs / Ruby MCQs / Question
M
Q. Which of the following is not a valid datatype?
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Which method is used to define getter and setter methods for instance variables in Ruby?
Ruby can be embedded into Hypertext Markup Language(HTML).
What is the output of the given code? a= 5 b=10 while a <10 && b<20 puts a-b a+=2 b+=2 end
What is the purpose of the ensure keyword in Ruby?
Which statement will execute at the end of the code, whether the exception raise or not?
In Ruby, what is encapsulation?
Which keyword is used to define a class method in Ruby?
What is the recommended way to install Ruby gems in a project?
Discusssion
Login to discuss.