
Python Arithmetic in Version 2
Interactive Video
•
Computers
•
9th - 10th Grade
•
Practice Problem
•
Hard
Jennifer Brown
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary focus of this video tutorial?
Arithmetic in Python version 3
Object-oriented programming in Python
Data structures in Python
Arithmetic in Python version 2
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a type of number in Python version 2?
Long
Int
Complex
Double
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you convert an int to a long in Python version 2?
By adding zero j at the end
By using the float constructor
By adding an L at the end
By adding a 0 at the end
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when you try to convert a float to a long?
The float is directly converted to a long
The float is converted to a complex number
The float is rounded and then converted to a long
A type error is raised
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When adding an int and a long, what does Python do?
Converts the int to a long
Raises a type error
Converts the long to an int
Converts both to floats
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of multiplying an int and a float in Python?
An int
A complex number
A long
A float
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of dividing a float by a complex number?
A long
A complex number
A float
An int
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
20 questions
Thanksgiving
Quiz
•
KG - 12th Grade
20 questions
Pythagorean Theorem and Their Converse
Quiz
•
8th - 9th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Thanksgiving Trivia Challenge: Test Your Knowledge!
Interactive video
•
6th - 10th Grade