Computer Science, asked by jasmin486, 11 months ago

Which of the following is a valid reason for giving variables meaningful names in a program?

A) The code will run with fewer errors since the CPU can interpret what the variable represents from its name.

B) The memory required to store the variables will be reduced as the possible values which can be stored by each variable can be determined from their names.

C) The compiler will be able to parse the code faster since it will know the purpose of each variable.

D) A programmer will find it easier to read and understand the code since they will know what the variables represent.

Answers

Answered by AwesomeSoul47
9

Answer:

hey mate I am not getting your question

Answered by AskewTronics
3

Option D is the correct answer for the above question

Explanation:

The variable is used to holds any value and involved in some operation to get the new value by the help of instruction which is operated by the computer system to produce an output. It is necessary to declare the variable with some meaningful name. The name related to their work. It is because another programmer or user can understand the significance and works of any variable.

The above concept also referred by the Option d and the question asked about the necessity of the meaningful variable. so the option d is the correct answer while the other is not because:-

  • Option 'a' states that the CPU can understand the error with the help of a meaningful variable which is not correct.
  • Option b states that the memory requires the meaningful name of the variable, but the memory reads the variable with the help of machine codes.
  • Option c states that the compiler needs a meaningful variable to parse the code which is not the correct.

Learn More:

  • Variables : https://brainly.in/question/13849893
Similar questions