Vidyalelo
Ruby Programming · Q26

Methods in Ruby

Programming · Ruby Programming · question 26

Q26

What is the purpose of the yield keyword in Ruby?

A.
To exit a method
B.
To call another method
C.
To define a block
D.
To pass control and arguments to a block
Answer

Answer: Option D

Solution

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