How do you compare two objects in Ruby?
A. object1 == object2
B. object1.equals(object2)
C. object1 === object2
D. compare(object1, object2)
Answer: Option A
A. object1 == object2
B. object1.equals(object2)
C. object1 === object2
D. compare(object1, object2)
Answer: Option A
What does the 'puts' method do in Ruby?
A. Prints to console
B. Converts to string
C. Finds the length
D. Reads input from user
Join The Discussion