Mathematical Operators in Python

Mathematical Operators in Python

8th Grade

12 Qs

quiz-placeholder

Similar activities

Working with tables

Working with tables

5th - 12th Grade

10 Qs

Cascading Style Sheets

Cascading Style Sheets

8th - 12th Grade

11 Qs

Technology trends

Technology trends

7th - 12th Grade

15 Qs

Nhập môn HTML

Nhập môn HTML

6th - 9th Grade

13 Qs

Technology Week HTG Quiz - Monday

Technology Week HTG Quiz - Monday

7th - 12th Grade

10 Qs

Year 8 - Illustrator - L4

Year 8 - Illustrator - L4

7th - 9th Grade

15 Qs

Mathematical Operators in Python

Mathematical Operators in Python

Assessment

Quiz

Computers

8th Grade

Practice Problem

Hard

Created by

Mr. So

Used 99+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?