1.

Which operator is overloaded by the __or__() function?(a) ||(b) |(c) //(d) /I have been asked this question in an interview for job.Question is from Operator Overloading in portion Classes and Objects, Inheritance, Polymorphism, Encapsulation and Exception Handling of Python

Answer»

The correct answer is (B) |

The BEST I can EXPLAIN: The FUNCTION __or__() overloads the bitwise OR operator |.



Discussion

No Comment Found

Related InterviewSolutions