Embercode
✕
OperatorsQuick quiz

Operator review in Python

6 questions. Covers XOR tricks in Python.

Questions 1 to 5 of 6

  1. 1. Match each expression with its value.

    Choose the matching item for each row.

  2. 2. Match each expression with its value.

    Choose the matching item for each row.

  3. 3. What does this program print? ``python k = 2 r = k * (k := k + 1) + k print(r, k) ``
  4. 4. What does print(1 << 2 + 1) print?
  5. 5. What does this program print? ``python t = -11 print(int(t / 10) * 10) print(t // 10 * 10) ``

5 question(s) left on this page.