Vidyalelo
Ruby Programming · Q7

Methods in Ruby

Programming · Ruby Programming · question 7

Q7

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

A.
To accept a variable number of arguments
Answer
B.
To multiply two numbers
C.
To access instance variables
D.
None of the above

Answer: Option A

Solution

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