CBSE Class 11 Computer Science Question 80 of 173

Data Handling — Question 9

Back to all questions
9
Question

Question 9

Is it true that if two objects return True for is operator, they will also return True for == operator?

Answer

Yes, if is operator returns true, it implicitly means that the equality operator will also return True. is operator returning true implies that both the variables point to the same object and hence == operator must return True.

Answer