Vidyalelo
Ruby Programming · Q9

Methods in Ruby

Programming · Ruby Programming · question 9

Q9

In Ruby, what does the `yield` keyword do in a method?

A.
Exits the method
B.
Calls the block passed to the method
Answer
C.
Raises an exception
D.
None of the above

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board