Q. How do you define a constant in Ruby?

  • (A) Starting with uppercase letter
  • (B) Starting with lowercase letter
  • (C) Starting with underscore
  • (D) Starting with $ sign
πŸ’¬ Discuss
βœ… Correct Answer: (A) Starting with uppercase letter
Explanation: Constants begin with an uppercase letter in Ruby.
Explanation by: Rati Dubey
Constants begin with an uppercase letter in Ruby.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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