Mathematical Operators in Python

Quiz
•
Computers
•
8th Grade
•
Hard
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
Similar Resources on Wayground
17 questions
Computer Science

Quiz
•
6th - 8th Grade
17 questions
Python Programming: Amazon Turing Lab Farmbot Key Terms

Quiz
•
8th Grade
10 questions
Python - Printing, Variables and Syntax

Quiz
•
8th Grade
17 questions
Python KS3

Quiz
•
8th Grade
15 questions
Selection in Python

Quiz
•
1st - 9th Grade
10 questions
Python Lists

Quiz
•
8th - 9th Grade
10 questions
Python Basics

Quiz
•
8th - 10th Grade
10 questions
BASIC 256

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade