COMPUTER PROGRAMMING FUNDAMENTALS
WHAT IS PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
myName = “David”
|
|
myAge = 21
|
|
Either A or B
|
|
None of the above
|
Detailed explanation-1: -In computer programming, an assignment statement sets and/or re-sets the value stored in the storage location(s) denoted by a variable name; in other words, it copies a value into the variable. In most imperative programming languages, the assignment statement (or expression) is a fundamental construct.
Detailed explanation-2: -An assignment statement sets the current value of a variable, field, parameter, or element. The statement consists of an assignment target followed by the assignment operator and an expression.
Detailed explanation-3: -Syntax. The symbol used in an assignment statement is called as an operator. The symbol is ‘=’. Note: The Assignment Operator should never be used for Equality purpose which is double equal sign ‘==’.
Detailed explanation-4: -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.