MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
In algorithm assignment operation is performed using the symbol ____
A
=
B
:=
C
++
D
==
Explanation: 

Detailed explanation-1: -It is the operator used to assign the right side operand or variable to the left side variable.

Detailed explanation-2: -:= it means “set equal to” An assignment with syntax. v := expr sets the value of variable «v» to the value obtained from expression «expr». Example: X := B Sets the Definition of X to the value of B. Follow this answer to receive notifications. answered Feb 12, 2022 at 4:39.

Detailed explanation-3: -In ALGOL and Pascal, the assignment operator is a colon and an equals sign ( “:=” ) while the equality operator is a single equals ( “=” ).

Detailed explanation-4: -In Go, := is for declaration + assignment, whereas = is for assignment only. For example, var foo int = 10 is the same as foo := 10 .

Detailed explanation-5: -“=”: This is the simplest assignment operator. This operator is used to assign the value on the right to the variable on the left. For example: a = 10; b = 20; ch = ‘y’;

There is 1 question to complete.