FC0-U71 Software Development Concepts Practice Question
A student is learning to write programs and asks why a programming language uses variables. The instructor explains that a variable lets the program store a value under a name and refer to it later. Which statement best describes the role of a variable in a program?
⚠ Common exam trap
The trap here is mixing up a variable with a constant or with persistent storage, when a variable is specifically a changeable in-memory value.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
A variable is a named location in memory that holds a value which can change during execution.
A variable is a named reference to a memory location that holds a value the program can read and modify during execution. This lets code store results, such as a running total, and reuse them later by name. Persistent disk storage, immutable constants, and loops are separate concepts, so they do not describe the role of a variable in the program.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
A variable is a named location in memory that holds a value which can change during execution.
Why this is correct
This accurately describes a variable: a name that references a memory location whose contents can be read and updated as the program runs. For example, a variable can hold a running total that increases with each loop iteration. This definition matches the instructor's explanation that a variable stores a value under a name for later use.
- ✗
A variable is a type of loop that repeats instructions until a condition is met.
Why it's wrong here
A loop is a control structure that repeats a block of code, which is a different concept from a variable. While a loop often uses a variable as a counter, the variable itself is not a loop. This option confuses two distinct programming constructs and does not describe what a variable does in the scenario.
- ✗
A variable is a fixed value that cannot be changed once the program starts.
Why it's wrong here
A value that cannot change is a constant, not a variable. The defining feature of a variable is that its value can be reassigned during execution. Describing a variable as fixed contradicts the very idea of a variable and does not match the instructor's point that the program can refer to the stored value and update it later.
- ✗
A variable permanently stores data on disk so it survives after the program ends.
Why it's wrong here
Permanent storage that survives after the program ends is the role of files or databases, not variables. Variables typically hold values in memory while the program runs and are lost when it exits unless the data is explicitly written to disk. This statement confuses in-memory variables with persistent storage.
Go deeper
Related to this question
About these practice questions
This FC0-U71 question is part of Courseiva's 988-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official CompTIA exam blueprint
This FC0-U71 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the FC0-U71 exam.