FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which one best describes a variable?
A
Variable is only eligible to store numbers.
B
A value within a variable can’t be changed.
C
Variable is used to modify the algorithm in a program.
D
Variable is a container to store data, such as text, number, etc.
Explanation: 

Detailed explanation-1: -Variables are containers in which data values can be stored within the computer’s memory. They have a name, which is also referred to as an address. This is a box / container. In variable terms, we can give it a name/address called box.

Detailed explanation-2: -What is a variable? In programming, a variable is a value that can change, depending on conditions or on information passed to the program.

Detailed explanation-3: -For instance, a variable that holds text strings has the data type String and is called a string variable. A variable that holds integers (whole numbers) has the data type Integer and is called an integer variable.

Detailed explanation-4: -Variables are those containers, in which data is stored and this stored value can be used when needed, or it can also be amended after execution. So variables are those containers, which are used to store data in the form of records.

There is 1 question to complete.