FC0-U71 Software Development Concepts Practice Question
A developer is designing a program to calculate an employee's weekly pay. The program must store the hourly rate, the number of hours worked, and the computed gross pay so these values can be used and updated as the calculation proceeds. Which programming concept describes these named storage locations?
⚠ Common exam trap
The trap here is selecting data types because they sound related to storing values, when the question asks specifically for named locations that hold and update values during execution.
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
✓
Variables
Named storage locations whose contents can change during execution are variables. The hourly rate, hours worked, and gross pay each need a place to hold a value, and gross pay must be updated after the calculation. Variables provide exactly this capability, while constants cannot change, operators perform actions rather than store data, and data types classify values rather than hold them.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Constants
Why it's wrong here
A constant holds a value that cannot change after it is assigned. The hourly rate might be constant for a pay period, but hours worked and gross pay change as the calculation proceeds. Because the scenario requires values that can be updated, constants alone cannot represent all the required storage locations.
- ✗
Data types
Why it's wrong here
A data type defines the kind of value a storage location can hold and the operations allowed on it, such as integer or floating-point. It describes what a value is, not where a value is kept. The scenario asks for named storage locations that hold and update values, so data types are relevant but do not themselves provide that storage.
- ✗
Operators
Why it's wrong here
An operator is a symbol or keyword that performs an operation on values, such as addition or multiplication. Operators act on data but do not store it. The scenario needs places to hold the hourly rate, hours worked, and gross pay, so operators alone cannot satisfy the requirement even though one is needed to compute the pay.
- ✓
Variables
Why this is correct
A variable is a named storage location whose value can change during program execution. The hourly rate, hours worked, and gross pay can each be stored in a variable, and the gross pay variable can be updated after the multiplication. This directly matches the need for named locations that hold and update values during the calculation.
Go deeper
Related to this question
About these practice questions
One of 988 original FC0-U71 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.