Rewrite the English description of the following expression as a Python expression: The variable x has the value 12. The variable y has the value x plus 4.
Translate to Math

Quiz
•
Computers
•
9th Grade
•
Hard
Vanessa Anderson
Used 1+ times
FREE Resource
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
x = 12 y = x + 4
x = 12 y = 12 + 4
x = 12 y = 4 + 12
x = 12 y = 16
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Rewrite the English description of the following expression as a Python expression: The variable total_price holds the cost of num_books at price dollars per book.
total_price = num_books * price
total_price = num_books / price
total_price = price + num_books
total_price = price - num_books
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Rewrite the English description of the following expression as a Python expression: The variable sound has the value “pop”. The variable popcorn has the value “poppoppoppop”, but is assigned by only using the variable sound, multiplication, and a number.
sound * 4
'pop' * 4
4 * sound
sound + 'pop'
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Rewrite the English description of the following expression as a Python expression: The variable remain holds the remainder when 1331 is divided by 4.
remain = 1331 % 4
remain == 1331 % 4
remain = 1331 // 4
remain = mod(1331, 4)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Rewrite the English description as a Python expression: The variable num is assigned the whole number resulting from dividing 3 by 2.
num = 3/2
num = 3//2
num = int(3/2)
num = 3/2.0
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Rewrite the English description of the following expression as a Python expression: The variable num is assigned the decimal number resulting from dividing 3 by 2.
num = 3 / 2
num = 3 // 2
num = division(3, 2)
num = float(3/2)
Similar Resources on Quizizz
10 questions
Variables and Constants

Quiz
•
11th Grade - University
10 questions
Comp Sci Quiz #6

Quiz
•
11th Grade
10 questions
AP Computer Science-Quiz 2(G10)

Quiz
•
9th - 12th Grade
10 questions
Functions in Python

Quiz
•
University
10 questions
Estructura Condicional If en Python

Quiz
•
10th Grade
10 questions
Topic2: If method

Quiz
•
University
10 questions
Programming - Variables & Constants

Quiz
•
4th - 12th Grade
10 questions
Arrays

Quiz
•
10th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade