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
Answer: Option D

Join The Discussion