πŸ“Š Ruby
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
πŸ’¬ Discuss
βœ… Correct Answer: (C) if the receiver and argument have the same object id.

Explanation: equal? return True if the receiver and argument have the same object id.

Explanation by: Vinay Kumar
equal? return True if the receiver and argument have the same object id.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
126
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Vinay Kumar
Publisher
πŸ“ˆ
97%
Success Rate