Mathematical Operators in Python

Mathematical Operators in Python

8th Grade

12 Qs

quiz-placeholder

Similar activities

Lord Bill's Year 7 Python Quiz

Lord Bill's Year 7 Python Quiz

6th - 8th Grade

13 Qs

9.3 L3 Python Lists

9.3 L3 Python Lists

7th - 10th Grade

10 Qs

Programming in Java

Programming in Java

8th Grade

10 Qs

Week 6 Quiz - Dictionaries/Functions/F-Strings

Week 6 Quiz - Dictionaries/Functions/F-Strings

6th - 8th Grade

16 Qs

Vex V5 Code Troubleshooting Quiz

Vex V5 Code Troubleshooting Quiz

6th - 8th Grade

10 Qs

Variables - 1

Variables - 1

7th - 8th Grade

9 Qs

Python

Python

7th - 8th Grade

10 Qs

Python Introduction Quiz

Python Introduction Quiz

8th - 9th Grade

12 Qs

Mathematical Operators in Python

Mathematical Operators in Python

Assessment

Quiz

Computers

8th Grade

Hard

Created by

Mr. So

Used 91+ times

FREE Resource

12 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What does the following equation calculate to in Python?

2 + 2 * 3

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What does the following equation calculate to in Python?

(2 + 2 )* 3

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Look at the following code:

age = 23

age = age * 2

print (age)


What is printed?

23

23 * 2

25

46

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Look at the following code:

age = "23"

age = age + 1

print (age)


What is the result of this code?

23

24

23 + 1

an error message

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Look at the following code:

age = input ("What is your age? ")

age = age + 1

print (age)


If the user inputs 23, what is the result of the code?

23

24

age

an error message

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Look at the following code:

age = int(input ("What is your age? "))

age = age + 1

print (age)


If the user inputs 23, what is the result of the code?

23

24

age

an error message

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Look at the following code:

age = input ("What is your age? ")

age = int(age) + 1

print (age)


If the user inputs 23, what is the result of the code?

23

24

age

an error message

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?