nerdexam
CompTIA

FC0-U61 · Question #799

Which of the following defines a reusable value that can be reassigned?

The correct answer is B. Variable. A variable is a named container that can store a value of a certain data type, such as a number, a string, or a Boolean. A variable can be reused throughout a program by referring to its name, and its value can be changed or reassigned as needed. For example, in the following Pyt

Software Development

Question

Which of the following defines a reusable value that can be reassigned?

Options

  • AMethod
  • BVariable
  • CConstant
  • DFunction

How the community answered

(37 responses)
  • A
    3% (1)
  • B
    95% (35)
  • C
    3% (1)

Explanation

A variable is a named container that can store a value of a certain data type, such as a number, a string, or a Boolean. A variable can be reused throughout a program by referring to its name, and its value can be changed or reassigned as needed. For example, in the following Python code, x is a variable that is assigned the value 10, then reassigned the value 20.

Topics

#Variables#Programming fundamentals#Data types

Community Discussion

No community discussion yet for this question.

Full FC0-U61 Practice