111k views
14 votes
Which of the following does not represent the function of a Variable? Variables store data in memory; this data has limited use throughout a program.

Variables are used to store information that is referenced and manipulated in a computer program.
Variables provide a way of labeling data with a descriptive name
Variables are containers that hold information.

1 Answer

8 votes

Answer:

Variables store data in memory; this data has limited use throughout a program.

Step-by-step explanation:

In Computer programming, a variable can be defined as a placeholder or container for holding a piece of information which can be modified or edited.

Basically, variable stores information which is passed from the location of the method call directly to the method that is called by the program.

Some of the function of a Variable includes;

I. Variables are used to store information that is referenced and manipulated in a computer program.

II. Variables provide a way of labeling data with a descriptive name. This helps to make programming codes to be clear and easy to understand for everyone.

III. Variables are containers that hold information.

Generally, variables are essential in writing codes because they are used to label and logically store data in contiguous memory locations.

Hence, variables store data in memory; this data can be used throughout the program i.e they do not have limited use throughout a program.

User Jsaji
by
4.0k points