FC0-U61 · Question #799
Which of the following defines a reusable value that can be reassigned?
The correct answer is B. Variable. A variable is a named container that can store a value of a certain data type, such as a number, a string, or a Boolean. A variable can be reused throughout a program by referring to its name, and its value can be changed or reassigned as needed. For example, in the following Pyt
Question
Which of the following defines a reusable value that can be reassigned?
Options
- AMethod
- BVariable
- CConstant
- DFunction
How the community answered
(37 responses)- A3% (1)
- B95% (35)
- C3% (1)
Explanation
A variable is a named container that can store a value of a certain data type, such as a number, a string, or a Boolean. A variable can be reused throughout a program by referring to its name, and its value can be changed or reassigned as needed. For example, in the following Python code, x is a variable that is assigned the value 10, then reassigned the value 20.
Topics
Community Discussion
No community discussion yet for this question.