Examveda

What is the purpose of using constants in Ruby programming?

A. To store values that can be modified during the execution of the program

B. To declare variables that are accessible only within a specific scope

C. To store values that are sensitive and should not be accessed by other parts of the program

D. To define values that remain constant throughout the execution of the program

Answer: Option D


Join The Discussion

Related Questions on Best Practices and Code Conventions in Ruby