Vidyalelo
Ruby Programming · Q54

Basic Syntax in Ruby

Programming · Ruby Programming · question 54

Q54

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

A.
constant_name = value
B.
constant name : value
C.
CONSTANT_NAME = value
Answer
D.
constant_name(value)

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board