Understanding Numbers in Python Version 2

Understanding Numbers in Python Version 2

Assessment

Interactive Video

Computers

9th - 10th Grade

Hard

Created by

Nancy Jackson

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which version of Python is discussed in this video for number types?

Python version 2

Python version 3

Python version 1

Python version 4

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when an integer in Python version 2 exceeds its maximum value?

It resets to zero

It causes an overflow error

It automatically converts to a float

It automatically converts to a long

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you explicitly specify a long number in Python version 2?

By adding a letter 'L' at the end

By adding a letter 'F' at the end

By adding a letter 'D' at the end

By adding a letter 'I' at the end

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the type of number used to store decimal values in Python version 2?

Integer

Long

Float

Complex

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python version 2, what letter is used to denote the imaginary part of a complex number?

I

J

K

L