Mathematical Operators in Python

Mathematical Operators in Python

Assessment

Flashcard

Computers

8th Grade

Practice Problem

Easy

Created by

Wayground Content

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

12 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What does the following equation calculate to in Python? 2 + 2 * 3

Back

8

2.

FLASHCARD QUESTION

Front

What does the following equation calculate to in Python? (2 + 2 )* 3

Back

12

3.

FLASHCARD QUESTION

Front

What is printed by the following code?
age = 23
age = age * 2
print (age)

Back

46

4.

FLASHCARD QUESTION

Front

What is the result of the following code:
age = "23"
age = age + 1
print (age)?

Back

an error message

5.

FLASHCARD QUESTION

Front

If the user inputs 23 in the following code:
age = input ("What is your age? ")
age = age + 1
print (age)
what is the result of the code?

Back

an error message

6.

FLASHCARD QUESTION

Front

If the user inputs 23, what is the result of the code: age = int(input ("What is your age? "))
age = age + 1
print (age)?

Back

24

7.

FLASHCARD QUESTION

Front

If the user inputs 23, what is the result of the code: age = input ("What is your age? ") age = int(age) + 1 print (age)?

Back

24

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?