Vidyalelo
Ruby Programming · Q16

Methods in Ruby

Programming · Ruby Programming · question 16

Q16

What does the return keyword do in Ruby methods?

A.
Exits the method
B.
Returns a value
Answer
C.
Jumps to the next iteration of the loop
D.
Resets the method

Answer: Option B

Solution

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