Exam-style question
Try this first
Understanding variable and constant declaration in programming languages.
Description
Variable and Constant Declaration
In programming, variables are used to store data that can change, while constants are used for fixed values. For example, in Python, a variable can be declared as 'age = 25' and a constant can be declared as 'PI = 3.14'.
- a[1]
State What is the purpose of using constants in programming?
Aim for approximately 1 distinct marking point.
0 of 1 part answered
Answer every part before opening the mark scheme.
Concise answer preview
Concise answer
To hold values that do not change during execution.
Why this is correct
Constants are used to define fixed values that should remain unchanged throughout the program.
Complete every part above to unlock the full mark scheme through the existing protected review flow.
Common mistake
No common mistake is linked to this question yet.
