Home / Programming MCQs / Ruby MCQs / Question

V

Vinay Kumar • 8.55K Points
Tutor III

Q. equal? Operator is used for?

(A) Used to test equality within a when clause of a case statement.
(B) if the receiver and argument have both the same type and equal values.
(C) if the receiver and argument have the same object id.
(D) All of the above
Explanation by: Vinay Kumar
equal? return True if the receiver and argument have the same object id.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.