Mathematical Operators in Python

Quiz
•
Computers
•
8th Grade
•
Hard
Mr. So
Used 87+ 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
9 questions
Python Basics

Quiz
•
6th - 12th Grade
13 questions
2.5 Translators & Facilities - OCR GCSE Computer Science

Quiz
•
7th - 12th Grade
14 questions
Python Data types & Exceptions

Quiz
•
1st - 10th Grade
14 questions
Python Basic Unit 1

Quiz
•
7th - 8th Grade
17 questions
Python KS3

Quiz
•
6th - 9th Grade
12 questions
Python Coding

Quiz
•
6th - 8th Grade
13 questions
Program Development - Python: Errors

Quiz
•
8th - 10th Grade
9 questions
Python Programming Basics

Quiz
•
6th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade