πŸ“Š Ruby
Q. How do you create a proc in Ruby?
  • (A) By using the create_proc function
  • (B) Using the Proc.new method or the -> (stabby lambda) syntax
  • (C) By invoking the proc keyword followed by parentheses ()
  • (D) By using the create_proc function
πŸ’¬ Discuss
βœ… Correct Answer: (B) Using the Proc.new method or the -> (stabby lambda) syntax

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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