A

Admin • 828.03K Points
Coach

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
  • Correct Answer - Option(C)
  • Views: 11
  • Filed under category Ruby
  • Hashtags:

Explanation by: Admin
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.

Be the first to start discuss.