πŸ“Š Ruby
Q. 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
πŸ’¬ Discuss
βœ… Correct Answer: (A) To accept a variable number of arguments

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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