Vidyalelo
Ruby Programming · Q33

Advanced Topics in Ruby

Programming · Ruby Programming · question 33

Q33

In Ruby, what does it mean to "freeze" an object?

A.
Prevents further modifications to the object's state
Answer
B.
Locks the object's methods so they cannot be overridden
C.
Forces the object to release all resources allocated to it
D.
Prevents the object from being garbage collected

Answer: Option A

Solution

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