Examveda
Examveda

What is the purpose of the splat operator (*) in Ruby method definitions?

A. To accept a variable number of arguments

B. To multiply two numbers

C. To access instance variables

D. None of the above

Answer: Option A


This Question Belongs to Ruby Programming >> Methods In Ruby

Join The Discussion

Related Questions on Methods in Ruby