FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
If you wanted to assign a value to a variable, which operator would you use?
A
==
B
=
C
=!
D
equals
Explanation: 

Detailed explanation-1: -This operator assigns a value to a variable or property. Comparison operator also used as an equal to; the result of comparison operators is usually a logical value, either true or false.

Detailed explanation-2: -Assignment operators are used to assign values to variables.

Detailed explanation-3: -The assignment operator, denoted by the “=” symbol, is the operator that is used to assign values to variables in Python.

Detailed explanation-4: -The most common form of statement in a program uses the assignment operator, =, and either an expression or a constant to assign a value to a variable: variable = expression; variable = constant; The symbol of the assignment operator looks like the mathematical equality operator but in C++ its meaning is different.

There is 1 question to complete.