Home / Programming MCQs / Ruby MCQs / Question
V
Q. Which operator is used to find exponent in ruby?
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Which block only executes when no exception is raised?
What is the output of the given code? a=[["a","b"]] b=[["e","a"]] print a + b
What is the output of the given code? i=5 j=10 for i in 5..10 && j in 5..10 puts i**j end
How do you find the number of hours between two DateTime objects in Ruby?
What does the max_by method do in Ruby enumerators?
What is the main purpose of a constructor in a Ruby class?
What is the purpose of the alias_method keyword in Ruby?
Which keyword is used to refer to the current instance of a class in Ruby?
What happens if an exception is raised within a rescue block in Ruby?
In Ruby, what is the difference between a proc and a lambda?
Discusssion
Login to discuss.