Mathematical Operators in Python

Flashcard
•
Computers
•
8th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

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
Similar Resources on Wayground
10 questions
Age of Exploration

Flashcard
•
8th Grade
10 questions
Python

Flashcard
•
7th - 8th Grade
10 questions
App Creators

Flashcard
•
8th Grade
10 questions
Python

Flashcard
•
7th - 8th Grade
11 questions
Code.org Unit 3 Assessment Lessons 3-9

Flashcard
•
8th Grade
9 questions
Lesson 2 Intro to HTML

Flashcard
•
7th - 8th Grade
10 questions
Y8 IT/CO2 Database Homework 1 Flashcard

Flashcard
•
7th Grade
8 questions
8th Grade Georgia Studies Unit 5 Lesson 1

Flashcard
•
8th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th 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
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
16 questions
Clovis Unified Student Use of Technology

Quiz
•
4th - 8th Grade
11 questions
Technology Acceptable Use

Quiz
•
6th - 8th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
15 questions
Student Technology Agreement

Quiz
•
6th - 8th Grade
10 questions
Acceptable Use of Technology

Quiz
•
7th - 8th Grade