A

Admin • 828.03K 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
  • Correct Answer - Option(D)
  • Views: 8
  • Filed under category Ruby
  • Hashtags:

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.

Be the first to start discuss.