Arithmetic operators

5 important questions on Arithmetic operators

What is a binary operator

A binary operator is an operator with two operands, e.g., 4 + 5, or 12 % 5.

What is the output of the following snippet?

print((2 % -4), (2 % 4), (2 ** 3 ** 2))

-2 2 512

When both ** arguments are integers (2 ** 3), the result is... (Integer / Float)

Integer
  • Higher grades + faster learning
  • Never study anything twice
  • 100% sure, 100% understanding
Discover Study Smart

The result of a double division operator with at least one float is always (Integer / Float)   print(7. // 3)

Float (2.0)

What is the only operator that uses right sided binding?

**, the exponent. All others use left sided binding.

The question on the page originate from the summary of the following study material:

  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo