Examveda

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

D. It performs a bitwise operation on the receiver object

Answer: Option C


This Question Belongs to Ruby Programming >> Advanced Topics In Ruby

Join The Discussion

Related Questions on Advanced Topics in Ruby