
Python Numbers

Quiz
•
Other
•
12th Grade
•
Easy
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
Similar Resources on Wayground
10 questions
Contract Law

Quiz
•
10th - 12th Grade
13 questions
SpongeBob characters quiz

Quiz
•
KG - Professional Dev...
15 questions
Descriptive and Inferential Statistics

Quiz
•
12th Grade - University
10 questions
Discrete vs Continuous

Quiz
•
9th - 12th Grade
11 questions
roblox characters

Quiz
•
KG - University
10 questions
S in Medicine

Quiz
•
9th - 12th Grade
12 questions
May piscine 2nd quiz

Quiz
•
12th Grade
8 questions
Snakes

Quiz
•
1st - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Video Games

Quiz
•
6th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)

Quiz
•
9th - 12th Grade
20 questions
Parallel lines and transversals

Quiz
•
9th - 12th Grade
9 questions
Geometry and Trigonometry Concepts

Interactive video
•
9th - 12th Grade
10 questions
Angle Relationships with Parallel Lines and a Transversal

Quiz
•
9th - 12th Grade