Python Arithmetic, Boolean, and Strings

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Tam Nguyen
Used 4+ 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 Wayground
16 questions
Arithmetic Types Declare Initialize Relation Logical Ops

Quiz
•
9th Grade - University
17 questions
Python - Quiz

Quiz
•
9th - 11th Grade
14 questions
year 8 lesson 2 quiz - python

Quiz
•
8th - 10th Grade
10 questions
Bài 29 NHẬN BIẾT LỖI CHƯƠNG TRÌNH

Quiz
•
10th Grade
10 questions
AP Computer Science Principles - Unit 5: Lists, Loops

Quiz
•
9th - 12th Grade
19 questions
Programming Techniques Survey

Quiz
•
8th - 12th Grade
10 questions
Quiz 5 Spreadsheet

Quiz
•
9th Grade
9 questions
Testing

Quiz
•
9th - 11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade