Home / Programming MCQs / Ruby MCQs / Question
M
Q. What is an enumerator in Ruby?
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
What is the output of the given code? m=0 loop do puts m*10 m+=1 break if m==5 end
What will be the output of the following? array = [100, 200, 300, 400, 500] print "array[5]"
Which keyword is used to call a method on an object in Ruby?
Which command is used to uninstall all versions of a gem in Ruby?
Which of the following is the correct way to define a range in Ruby?
What is the purpose of the include keyword in Ruby classes?
What symbol is used to denote the end of a statement in Ruby?
What is the method used to create a new instance of a class in Ruby?
Discusssion
Login to discuss.