396,792 views
25 votes
25 votes
A constant is a name that references a value that cannot be changed while the program runs Not yet answered Marked out of 100 Flag question Select one: OA string B. keyword OC global O local

User Critichu
by
2.7k points

1 Answer

13 votes
13 votes

Answer:

C. global

Step-by-step explanation:

In programming, a constant is a value that cannot be changed or modified once it has been set. Constants are typically used to represent values that are used frequently throughout a program and are not intended to be changed.

In most programming languages, constants are declared using a specific keyword or syntax. For example, in C, constants are declared using the const keyword, while in Python, constants are typically represented using all uppercase letters.

It is important to note that the scope of a constant (i.e. where it can be accessed within a program) depends on how it is declared. Some constants, such as global constants, can be accessed from anywhere in the program, while others, such as local constants, are only accessible within a specific function or block of code.

User Seal
by
2.7k points