Vidyalelo
Ruby Programming · Q67

Advanced Topics in Ruby

Programming · Ruby Programming · question 67

Q67

What does the "splat" operator (*) do when used in method definitions in Ruby?

A.
It allows a method to accept a variable number of arguments as an array
Answer
B.
It repeats a block of code a specified number of times
C.
It creates a shallow copy of an array or hash
D.
It performs a bitwise operation on a numerical value

Answer: Option A

Solution

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