curriculum/challenges/english/blocks/learn-how-to-use-code-related-concepts-and-terms/6633ae85f1fb7aa3ca13234d.md
Please answer the question below.
Based on Tom's explanation, which scenario best illustrates the difference between variables and constants in a practical situation?
Variables are like the volume of a radio, which you can adjust anytime, whereas constants are like a sealed CD, whose songs cannot be altered.
Variables and constants both need regular updates to stay effective.
Constants do not change or need updates; they remain the same, unlike variables which can be updated.
You can pause or play music on a radio, just as you can switch variables and constants on and off.
This isn't right because constants, unlike variables, cannot be 'switched off' or altered; they are permanent once set.
Tom can only use constants during certain times of the day, while variables can be used anytime.
This statement is misleading as it suggests that the use of constants is time-restricted, which isn't true. Constants, like variables, do not have usage restrictions based on time but are defined by their unchangeable nature.
1
{
"setup": {
"background": "company2-center.png",
"characters": [
{
"character": "Tom",
"position": {
"x": 50,
"y": 15,
"z": 1.2
},
"opacity": 0
}
],
"audio": {
"filename": "5.2-3.mp3",
"startTime": 1,
"startTimestamp": 34.04,
"finishTimestamp": 40.82
}
},
"commands": [
{
"character": "Tom",
"opacity": 1,
"startTime": 0
},
{
"character": "Tom",
"startTime": 1,
"finishTime": 7.78,
"dialogue": {
"text": "I see. So that means I can change the values in these variables, but I can't touch the values in these constants.",
"align": "center"
}
},
{
"character": "Tom",
"opacity": 0,
"startTime": 8.28
}
]
}