Mathematical Operators in Python

Quiz
•
Computers
•
8th Grade
•
Hard
Mr. So
Used 91+ times
FREE Resource
12 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What does the following equation calculate to in Python?
2 + 2 * 3
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What does the following equation calculate to in Python?
(2 + 2 )* 3
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following code:
age = 23
age = age * 2
print (age)
What is printed?
23
23 * 2
25
46
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following code:
age = "23"
age = age + 1
print (age)
What is the result of this code?
23
24
23 + 1
an error message
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following code:
age = input ("What is your age? ")
age = age + 1
print (age)
If the user inputs 23, what is the result of the code?
23
24
age
an error message
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following code:
age = int(input ("What is your age? "))
age = age + 1
print (age)
If the user inputs 23, what is the result of the code?
23
24
age
an error message
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following code:
age = input ("What is your age? ")
age = int(age) + 1
print (age)
If the user inputs 23, what is the result of the code?
23
24
age
an error message
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
[RB3-Ch7] Data Verification & Validation

Quiz
•
6th - 8th Grade
10 questions
Programming in Java

Quiz
•
8th Grade
10 questions
Vex V5 Code Troubleshooting Quiz

Quiz
•
6th - 8th Grade
9 questions
Variables - 1

Quiz
•
7th - 8th Grade
12 questions
Computer Science

Quiz
•
3rd - 12th Grade
10 questions
MS EXCEL FORMULAS, FUNCTIONS AND ANALYSIS

Quiz
•
6th - 8th Grade
11 questions
Python Code Quiz

Quiz
•
8th - 12th Grade
15 questions
If-Statement and Relational Operators Quiz

Quiz
•
6th Grade - University
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
9/11 Experience and Reflections

Interactive video
•
10th - 12th 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
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade