Home / Programming MCQs / Ruby MCQs / Question
M
Q. How do you pass a proc as an argument to a method in Ruby?
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
What symbol is used to denote the end of a statement in Ruby?
What does the binmode method do in Ruby file I/O?
Which of the method is used to returns the contents of the file line by line?
What method is used to check if a file is writable in Ruby?
In Ruby, what is the difference between a proc and a lambda?
What is the purpose of the attr_accessor method in Ruby?
What does the "bang" (!) operator do when appended to a method name in Ruby?
Discusssion
Login to discuss.