Exam-style question
Try this first
Declaring variables and constants in programming.
Description
Variable and Constant Example
Consider the following declarations: 'int score = 100;' and 'const int MAX_SCORE = 1000;'.
- a[2]
Explain the difference between 'score' and 'MAX_SCORE'.
Aim for approximately 2 distinct marking points.
0 of 1 part answered
Answer every part before opening the mark scheme.
Concise answer preview
Concise answer
The variable 'score' can change its value during program execution, while 'MAX_SCORE' is a constant that remains fixed.
Why this is correct
This distinction is important for managing data effectively in programming.
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.
