B. State True or False
2. The value of a variable cannot be changed during program execution.
Answers
Answered by
7
Explanation:
The answer will be true.
Answered by
3
Answer:
The value of a variable cannot be changed during program execution-True
Explanation:
- A constant is a value that the programme cannot change during normal execution, i.e. the value is constant. A constant is considered to be "named" when it is coupled with an identifier, while the phrases "constant" and "named constant" are sometimes used interchangeably. A variable, on the other hand, is an identifier with a value that may be altered during normal execution, i.e., the value is variable.
- A variable's value can undoubtedly change while the application is executing. Because its value fluctuates, it is considered a variable rather than a constant.
- While a programme is running, the name cannot be changed. Alternatively, it is dependent on the programming language. I can imagine that some dynamic programming languages that store variables in a dictionary data structure could/would enable this to happen; however, the programmer would be quite frustrated. In static languages, the variable name denotes a place in memory; you can assign the value of the first variable to another variable, but you cannot modify the variable's name.
Reference Link
- https://brainly.in/question/5900901
- https://brainly.in/question/19834755
Similar questions