M

Mr. Dubey • 52.30K Points
Coach

Q. 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
  • (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

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.