FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following assignment statements is assigning text.
A
myName = “David”
B
myAge = 21
C
Either A or B
D
None of the above
Explanation: 

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.

There is 1 question to complete.