Vidyalelo
Ruby Programming · Q22

Methods in Ruby

Programming · Ruby Programming · question 22

Q22

Which of the following is true about optional parameters in Ruby methods?

A.
They must be specified during method definition
B.
They have default values assigned
Answer
C.
They are always required
D.
They cannot be used with block parameters

Answer: Option B

Solution

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