Q. Which symbol is used to denote a comment in Ruby?

  • (A) //
  • (B) #
  • (C) <!-- -->
  • (D) /* */
πŸ’¬ Discuss
βœ… Correct Answer: (B) #
Explanation: In Ruby, comments start with the '#' symbol.
Explanation by: Rati Dubey
In Ruby, comments start with the '#' symbol.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
82
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
87%
Success Rate