πŸ“Š Ruby
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) It allows a method to accept a variable number of arguments as an array

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
163
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
93%
Success Rate