
Python Arithmetic in Version 2

Interactive Video
•
Computers
•
9th - 10th Grade
•
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
Similar Resources on Wayground
8 questions
Handling User Input of Numbers and Error Handling in Python

Interactive video
•
KG - University
4 questions
Intro To Python Programming - Converting Variable Type

Interactive video
•
KG - University
16 questions
Mastering Python Basics in One Hour

Interactive video
•
9th Grade
11 questions
Python Interactive Help Features Quiz

Interactive video
•
9th - 10th Grade
11 questions
Financial Analysis - Build a ChatGPT Pairs Trading Bot - Pairs Trading Intuition

Interactive video
•
10th - 12th Grade
2 questions
Snowflake - Build and Architect Data Pipelines Using AWS - Introduction to User-Defined Functions and UDF Types

Interactive video
•
9th - 10th Grade
8 questions
Intro To Python Programming - Input

Interactive video
•
KG - University
11 questions
Understanding Quick Sort Algorithm

Interactive video
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
17 questions
[AP CSP] Binary Number System

Lesson
•
9th - 12th Grade
15 questions
1.1 Network Fundamentals Quiz

Quiz
•
10th Grade
20 questions
Understanding Information Processing Cycle

Quiz
•
10th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade