CompTIA ITF+ (FC0-U61) — Question 231
Which of the following defines a reusable value that can be reassigned?
Answer options
- A. Method
- B. Variable
- C. Constant
- D. Function
Correct answer: B
Explanation
The correct answer is B, Variable, because a variable is specifically designed to hold data that can be changed or reassigned throughout the program. In contrast, a Constant (C) holds a value that cannot be altered, while Methods (A) and Functions (D) are blocks of code that perform actions but do not themselves represent values.