# FUNDAMENTALS OF COMPUTER

## COMPUTER PROGRAMMING FUNDAMENTALS

### WHAT IS PROGRAMMING

 Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is a “variable”?
 A A named value in a program that always stays the same, eg the value for pi. B A character in a game, eg Scratch the cat. C A background in a game, eg a range of mountains. D A named value that can change throughout the program, eg a timer or a score.
Explanation:

Detailed explanation-1: -What is a variable? In programming, a variable is a value that can change, depending on conditions or on information passed to the program. Typically, a program consists of instruction s that tell the computer what to do and data that the program uses when it is running.

Detailed explanation-2: -A variable is a quantity that may be changed according to the mathematical problem. The generic letters which are used in many algebraic expressions and equations are x, y, z. In other words, a variable is a symbol for a number where the value is not known. For example, x + 5 = 10. Here “x” is a variable.

Detailed explanation-3: -An experimental inquiry typically has three main types of variables: an independent variable, a dependent variable and controlled variables.

Detailed explanation-4: -Answer. A variable is a memory space that is used in programs to store values ad change them at run time. Yes. We can change its value at run time.

There is 1 question to complete.