FC0-U71 · Question #39
A programmer needs to create a space in an application code to hold a value. The value will be updated periodically when the code is executed. Which of the following should the programmer use?
The correct answer is A. Variable. A variable is a named storage location in memory whose value can be read and updated during program execution. Since the programmer needs a space that will hold a value that changes periodically, a variable is the correct choice. A constant holds a fixed value that never changes
Question
A programmer needs to create a space in an application code to hold a value. The value will be updated periodically when the code is executed. Which of the following should the programmer use?
Options
- AVariable
- BSequence
- CLoop
- DConstant
How the community answered
(43 responses)- A88% (38)
- B7% (3)
- C2% (1)
- D2% (1)
Explanation
A variable is a named storage location in memory whose value can be read and updated during program execution. Since the programmer needs a space that will hold a value that changes periodically, a variable is the correct choice. A constant holds a fixed value that never changes at runtime. A sequence and loop are control flow constructs, not data storage mechanisms.
Topics
Community Discussion
No community discussion yet for this question.