Mathematical Operators in Python

Mathematical Operators in Python

8th Grade

12 Qs

quiz-placeholder

Similar activities

Program Development - Python: Errors

Program Development - Python: Errors

8th - 10th Grade

13 Qs

Programming Quiz 1

Programming Quiz 1

7th - 8th Grade

14 Qs

Python Mathematics Operators

Python Mathematics Operators

7th - 10th Grade

14 Qs

User Input in Python

User Input in Python

8th Grade

8 Qs

Python Basics

Python Basics

6th - 12th Grade

9 Qs

Python programming

Python programming

6th - 12th Grade

16 Qs

Variables in Python

Variables in Python

8th Grade

8 Qs

Python Quiz 1

Python Quiz 1

6th Grade - University

12 Qs

Mathematical Operators in Python

Mathematical Operators in Python

Assessment

Quiz

Computers

8th Grade

Hard

Created by

Mr. So

Used 87+ 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?