Embercode
✕
Variables and Data TypesQuick quiz

Two's complement and big numbers

7 questions. Covers Big integers in Python.

Questions 1 to 5 of 7

  1. 1. What does this program print? ``python import ctypes b = ctypes.c_int8(100) b.value += 100 print(b.value) ``
  2. 2. Which condition is true exactly when x is outside the 8-bit signed range?
  3. 3. What does this program print? ``python x = 10 x + 1 print(x) ``
  4. 4. What is the largest value a 32-bit signed integer can hold, written in full?

    Type your answer.

  5. 5. Which standard module raises OverflowError for a value outside its range, instead of wrapping it? Give the module name.

    Type your answer.

5 question(s) left on this page.

Typed answers ignore extra spaces and, for most questions, capital letters.