πŸ“Š Ruby
Q. How do you call a block in Ruby?
  • (A) By invoking it with parentheses ()
  • (B) By using the call method
  • (C) By passing it as an argument to a method
  • (D) By passing it to a method using the yield keyword
πŸ’¬ Discuss
βœ… Correct Answer: (D) By passing it to a method using the yield keyword

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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