πŸ“Š Ruby
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
πŸ’¬ Discuss
βœ… Correct Answer: (D) Variables defined within the block cannot be modified outside the block

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
208
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate