Python Numbers

Python Numbers

12th Grade

10 Qs

quiz-placeholder

Similar activities

Sampling Techniques

Sampling Techniques

9th - 12th Grade

11 Qs

2023 STEAM Week Technology Quiz

2023 STEAM Week Technology Quiz

9th - 12th Grade

10 Qs

Total Area vs. Integral

Total Area vs. Integral

11th - 12th Grade

15 Qs

Câu hỏi ôn tập Python lần 1

Câu hỏi ôn tập Python lần 1

KG - 12th Grade

14 Qs

Tech Buzz R1

Tech Buzz R1

12th Grade

15 Qs

C# and Python

C# and Python

4th Grade - University

7 Qs

Javascript Basics(user input/math)

Javascript Basics(user input/math)

12th Grade

11 Qs

Mathematical Operators

Mathematical Operators

12th Grade

7 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?