Mathematical Operators in Python

Mathematical Operators in Python

Assessment

Flashcard

Computers

8th Grade

Hard

Created by

Quizizz Content

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

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?