1.

‘=’ is a?(a) Relational operator(b) Arithmetic operator(c) Operational operator(d) Assignment operatorThis question was addressed to me by my school teacher while I was bunking the class.Asked question is from Logical Expressions in portion MATLAB Programming of MATLAB

Answer»

Right OPTION is (d) Assignment OPERATOR

The EXPLANATION is: p=2 assigns the value 2 to the variable p. Hence, ‘=’ is an assignment operator. It doesn’t perform arithmetic operations so it isn’t an arithmetic operator. It isn’t a relational operator UNLIKE ‘==’.



Discussion

No Comment Found

Related InterviewSolutions