Home / Programming MCQs / Ruby MCQs / Question
M
Q. In Ruby, what is the purpose of the -> (stabby lambda) syntax?
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
What is a "predicate method" in Ruby?
Which tool is commonly used for code formatting and linting in Ruby?
What is the correct way to declare a variable in Ruby without assigning a value?
How do you find the day of the week for a given Date object in Ruby?
What does the private keyword do in Ruby?
What is encapsulation in Ruby classes?
What is the main advantage of using exception handling in Ruby?
Which tool is commonly used for continuous integration (CI) in Ruby projects?
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
Discusssion
Login to discuss.