Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question 4 of 10 what is one advantage of storing numeric data in varia…

Question

question 4 of 10
what is one advantage of storing numeric data in variables?

a. images and words expressed through numbers can be stored in
variables.

b. variables can easily store both large and small numbers.

c. the programs code is easy to read if variables are used.

d. the programmer can go back and make changes to the data later.

Explanation:

Brief Explanations
  • Option A: Storing images/words via numbers isn't a primary advantage of variable - numeric data storage, and the focus here is on numeric data, so A is incorrect.
  • Option B: While variables can store numbers of different magnitudes, this isn't a distinct advantage specific to why we use variables for numeric data (as other data storage methods can also handle different - sized numbers).
  • Option C: Using variables for numeric data makes the code more readable. For example, instead of using a number like 3.14159 everywhere in a program related to circles, we can use a variable like pi = 3.14159, which makes the code easier to understand.
  • Option D: The ability to go back and change data later is more about data mutability in general and not a specific advantage of storing numeric data in variables.

Answer:

C. The program's code is easy to read if variables are used.