1.

Which of the following is a valid assignment operator?(a) +=(b) -=(c) *=(d) All of the mentionedI have been asked this question in a national level competition.Question is taken from Assignment Operators in section Mathematic Operations and Loops of Ruby

Answer»

The CORRECT OPTION is (d) All of the mentioned

Explanation: ASSIGNMENT OPERATORS are +=, -=, *=, /=, **=.



Discussion

No Comment Found

Related InterviewSolutions