πŸ“Š Ruby
Q. How do you define a block in Ruby?
  • (A) By using the keyword block followed by square brackets []
  • (B) By using the keyword block followed by parentheses ()
  • (C) By defining a method with the keyword block
  • (D) By enclosing code within curly braces {}
πŸ’¬ Discuss
βœ… Correct Answer: (D) By enclosing code within curly braces {}

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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