Python Arithmetic, Boolean, and Strings

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Tam Nguyen
Used 3+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
10^3-5*2
10^3-5x2
10**3-5*2
10**(3-5)*2
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Evaluate: 9//2
4.5
4
5
1
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Evaluate: 10%3
3.33333333333
3
1
7
Answer explanation
10 divided by 3 is 3 with the remainder of 1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Evaluate the Python expression: 10-4*2
12
2
8
Syntax Error
Answer explanation
The arithmetic order of operations is:
PEMDAS – Parentheses, Exponents, Multiplication, Division, Addition, Subtraction
A common phrase to remember it is:
"Please Excuse My Dear Aunt Sally."
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Evaluate: 3 * 3 ** 2
18
81
27
54
Answer explanation
Order of Operation: Exponentiation before multiplication
6.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Evaluate: 2 ** (8 - 5)
Answer explanation
Solve expression in parentheses first.
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
"x" is a variable for the price of a tea boba, extra flavoring cost $2, and tax is 10%.
Write the python expression (with no spaces) to compute the total cost.
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Gr10B Semester2

Quiz
•
10th Grade
16 questions
Variables, Inputs and Concatenation

Quiz
•
9th Grade
15 questions
Python - Chpt 1 - Review

Quiz
•
9th - 12th Grade
13 questions
Program Development - Python: Errors

Quiz
•
8th - 10th Grade
11 questions
Python Boolean

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

Quiz
•
7th - 12th Grade
16 questions
Python - Variables and Input

Quiz
•
1st - 10th Grade
11 questions
Python Quiz

Quiz
•
12th Grade
Popular Resources on Quizizz
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
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University