Python L4 Math Operator

Python L4 Math Operator

6th - 8th Grade

11 Qs

quiz-placeholder

Similar activities

Year 7 Python

Year 7 Python

7th Grade

12 Qs

Python Print Statement

Python Print Statement

6th - 10th Grade

12 Qs

Python basics

Python basics

6th - 8th Grade

15 Qs

Python

Python

7th - 8th Grade

13 Qs

year 8 lesson 2 quiz - python

year 8 lesson 2 quiz - python

8th - 10th Grade

14 Qs

Python for Class 7

Python for Class 7

7th - 8th Grade

11 Qs

Python Basics

Python Basics

KG - University

16 Qs

Python - Y8 lesson 1

Python - Y8 lesson 1

8th Grade

12 Qs

Python L4 Math Operator

Python L4 Math Operator

Assessment

Quiz

Computers

6th - 8th Grade

Hard

Created by

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.

order
formula

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?