1.
Ruby does not support ++ operator, it only supports += operator.
A
True
B
False
View Answer
Correct Answer: A — True
Explanation:
Ruby does not support ++ or - operator. It only supports += or -= operator.
3 practice sets · Page 1 of 1
Ruby does not support ++ operator, it only supports += operator.
True
False
Correct Answer: A — True
Explanation:
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
Correct Answer: B — It is used as exponent like 2**3=8
Explanation:
a=2 means a to the power of two.
Which of the following is a valid assignment operator?
+=
-=
*=
All of the mentioned
Correct Answer: D — All of the mentioned
Explanation:
Assignment operators are (+=, -=, =, /=, *=).