Home / Programming MCQs / Ruby MCQs / Question

M

Mr. Dubey • 51.43K Points
Coach

Q. Which of the following is true about the stability of variables within a block in Ruby?

(A) Variables defined outside the block can be modified within the block
(B) Variables defined inside the block can be modified outside the block
(C) Variables defined within the block cannot be modified inside the block
(D) Variables defined within the block cannot be modified outside the block

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.