Search Header Logo

Python Numeric Types

Authored by Amy Austin

Computers

12th Grade

Used 1+ times

Python Numeric Types
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many numeric types are there in Python?

Two

Three

Four

Five

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a numeric type in Python?

int

float

string

complex

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the numeric type of the variable x in the example provided (x = 1)?

int

float

complex

string

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the numeric type of the variable y in the example provided (y = 2.8)?

int

float

complex

string

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the numeric type of the variable z in the example provided (z = 1j)?

int

float

complex

string

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to verify the type of any object in Python?

typeOf()

getType()

typeof()

type()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an integer in Python?

A number with one or more decimals

A positive or negative whole number without decimals

A number with an "e" to indicate the power of 10

A text string

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?