1.
Ruby does not support ++ operator, it only supports += operator.
A
True
B
False
Answer and explanation
Correct Answer: A — True
Ruby does not support ++ or - operator. It only supports += or -= operator.
ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
3 practice sets · Page 1 of 1
Ruby does not support ++ operator, it only supports += operator.
True
False
Ruby does not support ++ or - operator. It only supports += or -= operator.
What does the **= assignment operator do?
Multiplies the value twice
It is used as exponent like 2**3=8
It is the multiplication operator.
None of the mentioned
a=2 means a to the power of two.
Which of the following is a valid assignment operator?
+=
-=
*=
All of the mentioned
Assignment operators are (+=, -=, =, /=, *=).