Home / Programming MCQs / Ruby MCQs / Question
M
Q. In Ruby, what is the difference between a proc and a lambda?
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
What is the primary purpose of a constructor in a Ruby class?
What is the result of the expression: 10 % 3 in Ruby?
What is the output of the given code? counter = -50 while counter <0 puts counter counter+=10 end
What is the result of the expression: 6 / 2 in Ruby?
What is the purpose of the splat operator (*) in Ruby method definitions?
Which of the following is not a type of Bitwise Operators?
Which keyword is used to define an instance method in Ruby?
Which method is used to convert a collection into an enumerator in Ruby?
How do you find the number of minutes between two DateTime objects in Ruby?
Discusssion
Login to discuss.