Examveda

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

C. They are always required

D. They cannot be used with block parameters

Answer: Option B


This Question Belongs to Ruby Programming >> Methods In Ruby

Join The Discussion

Related Questions on Methods in Ruby