Understanding Numbers in Python 3

Understanding Numbers in Python 3

Assessment

Interactive Video

Computers

9th - 10th Grade

Hard

Created by

Jennifer Brown

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main difference in the types of numbers between Python 2 and Python 3?

Python 3 does not support complex numbers.

Both versions have the same types of numbers.

Python 2 has more types of numbers than Python 3.

Python 3 has more types of numbers than Python 2.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you check the data type of a variable in Python 3?

By using the 'datatype' function.

By using the 'type' function.

By using the 'typeof' function.

By using the 'checktype' function.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a key feature of integers in Python 3?

They have a fixed size limit.

They can overflow if too large.

They can be of any size as long as memory allows.

They are always stored as floats.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is a float created in Python 3?

By typing a number with a decimal point.

By typing a number without a decimal point.

By using the 'float' keyword.

By appending 'f' to the number.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python 3, how is the imaginary part of a complex number represented?

With the letter 'k'.

With the letter 'j'.

With the letter 'c'.

With the letter 'i'.