πŸ“Š Ruby
Q. What happens if a block is passed to a method that doesn't expect one in Ruby?
  • (A) It silently ignores the block
  • (B) It converts the block into a proc and passes it as an argument
  • (C) It converts the block into a lambda and passes it as an argument
  • (D) It raises an error
πŸ’¬ Discuss
βœ… Correct Answer: (D) It raises an error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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