πŸ“Š Ruby
Q. In Ruby, what does the `yield` keyword do in a method?
  • (A) Exits the method
  • (B) Calls the block passed to the method
  • (C) Raises an exception
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) Calls the block passed to the method

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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