M

Mr. Dubey • 53.50K Points
Coach

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
  • Correct Answer - Option(B)
  • Views: 93
  • Filed under category Ruby

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.


Question analytics