Mathematical Operators in Python

Flashcard
•
Computers
•
8th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

12 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What does the following equation calculate to in Python? 2 + 2 * 3
Back
8
2.
FLASHCARD QUESTION
Front
What does the following equation calculate to in Python? (2 + 2 )* 3
Back
12
3.
FLASHCARD QUESTION
Front
What is printed by the following code?
age = 23
age = age * 2
print (age)
Back
46
4.
FLASHCARD QUESTION
Front
What is the result of the following code:
age = "23"
age = age + 1
print (age)?
Back
an error message
5.
FLASHCARD QUESTION
Front
If the user inputs 23 in the following code:
age = input ("What is your age? ")
age = age + 1
print (age)
what is the result of the code?
Back
an error message
6.
FLASHCARD QUESTION
Front
If the user inputs 23, what is the result of the code: age = int(input ("What is your age? "))
age = age + 1
print (age)?
Back
24
7.
FLASHCARD QUESTION
Front
If the user inputs 23, what is the result of the code: age = input ("What is your age? ") age = int(age) + 1 print (age)?
Back
24
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
PYTHON "If" Statement

Flashcard
•
6th Grade
10 questions
AI for Youth – Machine and Minds

Flashcard
•
8th Grade
11 questions
Code.org Unit 3 Assessment Lessons 3-9

Flashcard
•
8th Grade
10 questions
Y8 IT/CO2 Database Homework 1 Flashcard

Flashcard
•
7th Grade
8 questions
8th Grade Georgia Studies Unit 5 Lesson 1

Flashcard
•
8th Grade
10 questions
Age of Exploration

Flashcard
•
8th Grade
10 questions
WHI SOL Review 1

Flashcard
•
9th Grade
10 questions
Programming Intro Python WPMS

Flashcard
•
9th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade