QuestenaՎարժանք, որը ցույց է տալիս՝ ինչ կրկնել հաջորդիվ
Հարց 10

A calculation produces an integer larger than the signed 64-bit range. Assuming enough memory, what happens solely because of that size?

  1. The integer remains valid if memory is available.Ճիշտ պատասխան
  2. It wraps to a negative 64-bit value.
  3. It is automatically converted to a float.
  4. It raises OverflowError at the machine-word boundary.

Բացատրություն

Python integers expand to hold arbitrarily large values subject to available memory, so crossing a machine-word boundary does not itself cause overflow. Fixed-width wrapping is common in other environments but is not the ordinary Python integer model.

Շարունակեք այս թեստով

Սկսել վարժանքը
Հարց 10: A calculation produces an integer larger than the signed… · Python Fundamentals · Questena