What does the following equation calculate to in Python?
2 + 2 * 3
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
9 questions
Python
Quiz
•
6th - 12th Grade
12 questions
Code.org Unit 6 Review conditionals and Variables
Quiz
•
8th Grade
12 questions
Python
Quiz
•
7th - 8th Grade
7 questions
OCR Computer Science 2.3 Testing
Quiz
•
8th - 11th Grade
14 questions
Coding Python 1.1. Statements & Variables
Quiz
•
7th - 9th Grade
12 questions
Lesson 9 - The internet
Quiz
•
8th Grade
10 questions
Programming in Java
Quiz
•
8th Grade
10 questions
Vex V5 Code Troubleshooting Quiz
Quiz
•
6th - 8th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
44 questions
El fin del año- 7th
Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary
Quiz
•
8th Grade
17 questions
guess the logo
Quiz
•
8th Grade
16 questions
Function or Non-Function?
Quiz
•
8th - 10th Grade
15 questions
Sentence Fragments and Run-ons
Quiz
•
8th Grade