Python Numbers

Python Numbers

12th Grade

10 Qs

quiz-placeholder

Similar activities

R U Smarter than a 9th Grader

R U Smarter than a 9th Grader

KG - University

11 Qs

Quiz 1

Quiz 1

12th Grade

11 Qs

matematika kelas 3 ( 1 )

matematika kelas 3 ( 1 )

8th - 12th Grade

15 Qs

R1 - Estudo Orientado 3º ano

R1 - Estudo Orientado 3º ano

12th Grade

10 Qs

Human Capital Formation

Human Capital Formation

12th Grade

10 Qs

Fossil Fuels quiz

Fossil Fuels quiz

11th - 12th Grade

10 Qs

football of world

football of world

1st Grade - University

13 Qs

DMI - CSS - 12MM

DMI - CSS - 12MM

12th Grade

11 Qs

Python Numbers

Python Numbers

Assessment

Quiz

Other

12th Grade

Practice Problem

Easy

Created by

Amy Austin

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?