Answer the following statements true (T) or false (F)

1) Unary operators can be overloaded to accept two operands.
2) Operator overloading cannot change how an operator works with built-in types.
3) Comparison operators can be overloaded.
4) Subtraction can be overloaded with either special method, __neg__ or __sub__.
5) A class must define special methods to provide a dictionary-like interface.


1) F
2) T
3) T
4) F
5) F

Computer Science & Information Technology

You might also like to view...

When you click the button marked 3 in the accompanying figure, the pointer changes to a ____.

A. pointing finger B. crosshair C. watch D. half-moon

Computer Science & Information Technology

Which of the following is not true about TrueType fonts?

A) They must be downloaded from the Web. B) They print smoothly at any point size. C) They are scalable. D) They are supported by Windows.

Computer Science & Information Technology

When the underlying data changes, a PivotTable automatically updates

Indicate whether the statement is true or false

Computer Science & Information Technology

Rebooting a PC to troubleshoot a problem falls in the category of looking for a simple, obvious solution.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology