Skip to main contentSkip to solution

___________is raised when the result of calculation exceeds the maximum limit of numeric data type.

Solution

✅ Correct Option: 1

OverflowError is raised when the result of an arithmetic operation is too large for the numeric type to represent. For example, 2.0 ** 10000 raises OverflowError: (34, 'Numerical result out of range').


Option 2: Python has no built-in UnderflowError. A result too small for a float silently becomes 0.0.

Option 3: ImportError is raised when an import statement fails to load a module or a name from it.

Option 4: SizeError is not a built-in Python exception.

Python integers have arbitrary precision, so int calculations do not overflow. OverflowError mostly appears with floats and some math functions such as math.exp(1000).

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question