Python L4 Math Operator

Quiz
•
Computers
•
6th - 8th Grade
•
Hard
Future Teacher
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used for exponentiation in Python?
^
**
^^
*
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of print(10 // 2)?
4.5
5
4
5.0
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct use of an f-string?
print(f"Hello" + name)
print(f"Hello {name}")
print("Hello " + name)
print(f"Hello" + {name})
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The expression 3 * 2 + 4 / 2 evaluates to the same result as (3 * (2 + 4)) / 2.
True
False
Answer explanation
3 * 2 + 4 / 2 gave 8.0 as a result;
while
(3 * (2 + 4)) / 2 gave 9.0
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Using // in Python always gives you a float result.
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The round() function can be used to control how many decimal places are shown.
True
False
7.
DRAG AND DROP QUESTION
1 min • 1 pt
The PEMDAS rule helps determine the (a) of operations in math expressions.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Year 7 Python Lesson 1 Recap

Quiz
•
8th Grade
10 questions
Programming in Java

Quiz
•
8th Grade
10 questions
Python Variables

Quiz
•
7th - 12th Grade
10 questions
PYTHON (Functions)

Quiz
•
6th Grade
10 questions
Syntax python G7 (Post test)

Quiz
•
7th Grade
15 questions
Grade 8 End of Unit Revision

Quiz
•
8th Grade - University
10 questions
Computing Year 7 Term 2 _C.F.U 3

Quiz
•
7th Grade
10 questions
PRACTICE QUESTIONS ON BASIC LANGUAGE

Quiz
•
7th 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
8 questions
Time Management

Quiz
•
6th Grade
18 questions
Digital Footprint

Quiz
•
6th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th 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
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade