FC0-U61 · Question #22
Joe, a developer, is writing a program in which he needs to store a number that changes over the duration of the program's run. Which of the following would Joe MOST likely use to accomplish this?
The correct answer is B. Variable. A variable contains a value that can change during the execution of the program. This value might be a text string, a number, or any other data type. Variables are usually declared, defined as a particular data type, and given an initial value at the start of the routine in which
Question
Joe, a developer, is writing a program in which he needs to store a number that changes over the duration of the program's run. Which of the following would Joe MOST likely use to accomplish this?
Options
- ALoop
- BVariable
- CConstant
- DFunction
How the community answered
(56 responses)- A2% (1)
- B93% (52)
- C4% (2)
- D2% (1)
Explanation
A variable contains a value that can change during the execution of the program. This value might be a text string, a number, or any other data type. Variables are usually declared, defined as a particular data type, and given an initial value at the start of the routine in which they are used. It is often possible to use undeclared variables, but this can make code harder to read and more prone to errors.
Topics
Community Discussion
No community discussion yet for this question.