Python Arithmetic, Boolean, and Strings
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Tam Nguyen
Used 4+ times
FREE Resource
Enhance your content in a minute
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.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
python
Quiz
•
10th Grade
15 questions
Ôn tập KTGK. Bài 17. Biến và lệnh gán
Quiz
•
10th Grade
11 questions
Creative iMedia: Strengths, Weaknesses and Improvements
Quiz
•
10th Grade
10 questions
Ke-Al Azhar 8 an
Quiz
•
7th Grade - University
11 questions
Excel
Quiz
•
1st - 10th Grade
12 questions
Tabele HTML
Quiz
•
9th Grade
12 questions
H7.P1&P2.Nova2.Geluid.mhv
Quiz
•
4th - 10th Grade
15 questions
UAS Desain Media Interaktif
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
