Three of the following values could be stored as strings. When would you NOT use a
string command?
O To store a word.
O To store a list of colors.
O To store values NOT used for calculations.
O To store decimal values.

Answer :

Answer:

To store decimal values

Explanation:

If values are not to be used for calculation, that is, they are not numerical data, therefore, some of them could be stored as strings. A string may contain any sequence of characters. The characters in a string may be repeated.

From the foregoing, decimals can not be stored as strings because in computer programming, a string is normally a sequence of characters, hence the answer above.

Using variable concepts, it is found that you would not use a string command to store decimal values.

---------------------------

  • Strings are used in programming to work with variables that are composed by text, which can include words, colors, and any variable that is not used for calculator.
  • For decimal values, float and double variables are used, not strings, and thus, this is the option for which a string command would not be used.

A similar problem is given at https://brainly.com/question/15583814

Other Questions