nerdexam
CompTIA

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

Software Development Concepts

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)
  • A
    88% (38)
  • B
    7% (3)
  • C
    2% (1)
  • D
    2% (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

#Variables#Programming Constructs#Mutable Data

Community Discussion

No community discussion yet for this question.

Full FC0-U71 Practice