4. Which of the following are used to store data values for a program?
(i) Variables
(ii) Keywords
(iii) Comments
(iv) Operators
Answers
Answered by
2
Answer:
Variables is the correct answer.
Hope it helps you.
Answered by
1
Option (i) Variables
Variables are used to store data values for a program.
- In a computer programme, variables are used to hold data that can be accessed and changed. They also give us a means to give data a name that is descriptive, which helps the reader and us understand our programmes better. Variables can be thought of as storage spaces for data, which is a useful metaphor.
- A variable in programming is a value that is subject to change based on external factors or input. Typically, a programme is made of of data that the programme utilises while it is running and instructions that tell the computer what to perform.
- Your computer's primary memory, or RAM, is where variables would be kept while a programme was executing (simplifying cache and register issues for the moment). Depending on the RAM type, RAM holds charges that can be either interpreted as a 1 or a 0.
- These three sorts of variables—float, double, and decimal—handle whole numbers, decimal numbers, and fractional values. The range of values is where the three differ from one another.
#SPJ2
Similar questions