Vidyalelo
Ruby Programming · Q13

Basic Syntax in Ruby

Programming · Ruby Programming · question 13

Q13

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

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

Answer: Option A

Solution

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