Examveda

Which of the following is the correct way to define a constant in Ruby?

A. CONSTANT_NAME = value

B. constant_name = value

C. CONSTANT_NAME : value

D. constant name = value

Answer: Option A


This Question Belongs to Ruby Programming >> Basic Syntax In Ruby

Join The Discussion

Related Questions on Basic Syntax in Ruby