Named memory location that may hold different values over time.

Prepare for the CompTIA Tech+ (FC0-U71) Exam. Study with flashcards, multiple-choice questions, hints, and explanations to increase your exam readiness and confidence.

Multiple Choice

Named memory location that may hold different values over time.

Explanation:
A variable is a named memory location that may hold different values over time. You can assign a value to it and later change that value as the program runs, so the stored data can vary. This mutability is what makes it the right fit for a location that holds changing information, like a counter or user input. Constants are fixed values that don’t change once set. Attributes are properties tied to an object in object-oriented contexts, and methods are functions that belong to objects. So the described concept aligns with a variable. For example, a variable like score might start as 0 and later be updated to 5 or 10.

A variable is a named memory location that may hold different values over time. You can assign a value to it and later change that value as the program runs, so the stored data can vary. This mutability is what makes it the right fit for a location that holds changing information, like a counter or user input. Constants are fixed values that don’t change once set. Attributes are properties tied to an object in object-oriented contexts, and methods are functions that belong to objects. So the described concept aligns with a variable. For example, a variable like score might start as 0 and later be updated to 5 or 10.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy