Vidyalelo
Ruby Programming · Q45

Advanced Topics in Ruby

Programming · Ruby Programming · question 45

Q45

What does the "bang" (!) operator do when appended to a method name in Ruby?

A.
It indicates that the method returns a new object instead of modifying the receiver
B.
It raises an exception if the method fails
C.
It indicates that the method mutates the receiver object
Answer
D.
It performs a bitwise operation on the receiver object

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board