Vidyalelo
Ruby Programming · Q12

Data Types and Variables in Ruby

Programming · Ruby Programming · question 12

Q12

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

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

Answer: Option A

Solution

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