Home / Programming MCQs / Ruby MCQs / Question

M

Mr. Dubey • 51.17K Points
Coach

Q. In Ruby, what is the difference between a proc and a lambda?

(A) Procs perform strict argument checking, while lambdas do not
(B) Lambdas can accept a variable number of arguments, while procs cannot
(C) Lambdas perform strict argument checking, while procs do not
(D) Procs can accept a variable number of arguments, while lambdas cannot

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.