Python Numbers

Python Numbers

12th Grade

10 Qs

quiz-placeholder

Similar activities

HC 5.2 - 5.3 Quiz

HC 5.2 - 5.3 Quiz

11th - 12th Grade

10 Qs

Introductory Quiz

Introductory Quiz

9th - 12th Grade

10 Qs

Java Basic Lesson 3

Java Basic Lesson 3

5th Grade - University

9 Qs

Indefinite Integrals

Indefinite Integrals

11th - 12th Grade

10 Qs

Antiderivatives

Antiderivatives

12th Grade

12 Qs

Java Lesson 4

Java Lesson 4

5th Grade - University

10 Qs

Discrete vs Continuous

Discrete vs Continuous

9th - 12th Grade

10 Qs

Definite Integrals Review

Definite Integrals Review

11th - 12th Grade

15 Qs

Python Numbers

Python Numbers

Assessment

Quiz

Other

12th Grade

Easy

Created by

Amy Austin

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the three numeric types in Python?

function, method, class

array, dictionary, tuple

string, boolean, list

int, float, complex

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you verify the type of any object in Python?

Using the type() function

Using the verify() function

Using the typeof operator

Using the check() method

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to define a complex number in Python?

x = 3 + 5j

x = '3 + 5j'

x = complex(3,5)

x = 3 + 5i

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which module in Python can be used to generate random numbers?

number

generator

math

random

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you convert a variable 'x' into a floating point number?

float(x)

int(x)

str(x)

complex(x)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(type(1j)) in Python?

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid integer in Python?

2.8e3

-3255522

3.14

1.0

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?