answersLogoWhite

0

Not necessarily.

  • A variable can hold other types of values, not just numbers. For example, a variable can hold a date, a text (also know as "string"), a boolean (true or false) value, etc. In object-oriented programming, you basically make up your own data types.
  • An array variable can hold several related values. The individual values are usually distinguished by a number, called a subscript. (In other words, you have the first element, the second element, etc. in the array.)
User Avatar

Wiki User

11y ago

Still curious? Ask our experts.

Chat with our AI personalities

JudyJudy
Simplicity is my specialty.
Chat with Judy
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
ProfessorProfessor
I will give you the most educated answer.
Chat with Professor

Add your answer:

Earn +20 pts
Q: Does a variable only have one numerical value?
Write your answer...
Submit
Still have questions?
magnify glass
imp