Embercode
✕
Variables and Data TypesQuick quiz

Cumulative check

6 questions. Covers Naming and reading declarations in Python.

Questions 1 to 5 of 6

  1. 1. Which expression gives 2 for -7 divided by 3?
  2. 2. What is the value of n = 0o77?
  3. 3. What does this program print? ``python c = 'a' print(ord(c) + 1) print('' + c + str(1)) ``
  4. 4. What does this program print? ``python x = -2147483648 print(x // -1) ``
  5. 5. What happens when this runs? ``python values = [4, 2] for v in values: if v > 5: best = v print(best) ``

5 question(s) left on this page.