Q. In Ruby, what is the correct way to define a constant?

  • (A) constant_name = value
  • (B) constant name : value
  • (C) CONSTANT_NAME = value
  • (D) constant_name(value)
πŸ’¬ Discuss
βœ… Correct Answer: (C) CONSTANT_NAME = value

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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